anchor.diff:   *  error was caught outside of this library.
    */
   void _reportTestError(String msg, String trace) {
  - if (_currentTestCaseIndex < _testCases.length) {
  -    final testCase = _testCases[_currentTestCaseIndex];
  + if (_currentTestCaseIndex < testCases.length) {
  +    final testCase = testCases[_currentTestCaseIndex];
       testCase.error(msg, trace);
     } else {
       _uncaughtErrorMessage = "$msg: $trace";
  
positive.code:  */
  void _nextBatch() {
    while (true) {
      if (_currentTestCaseIndex >= _testCases.length) {
        _completeTests();
        break;
      }
      final testCase = _testCases[_currentTestCaseIndex];
      var f = _guardAsync(testCase._run, null, _currentTestCaseIndex);
      if (f != null) {
        f.whenComplete(() {
  
negative.code:   } else if (testFilter is Function) {
      filterFunction = testFilter;
    }
    testCases.retainWhere(filterFunction);
  }
  
  /** Runs all queued tests, one at a time. */
  