Index: packages/string_scanner/test/error_test.dart |
diff --git a/packages/string_scanner/test/error_test.dart b/packages/string_scanner/test/error_test.dart |
index 9c485e5594a8534aceda05d7ca0ac9ef639b8363..166077d5e048feb7b69083230cabb0062966d10b 100644 |
--- a/packages/string_scanner/test/error_test.dart |
+++ b/packages/string_scanner/test/error_test.dart |
@@ -2,8 +2,6 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library string_scanner.error_test; |
- |
import 'package:string_scanner/string_scanner.dart'; |
import 'package:test/test.dart'; |
@@ -61,11 +59,11 @@ void main() { |
}); |
group("with position and/or length", () { |
- test('defaults to length 1', () { |
+ test('defaults to length 0', () { |
var scanner = new StringScanner('foo bar baz'); |
scanner.expect('foo '); |
expect(() => scanner.error('oh no!', position: 1), |
- throwsStringScannerException('o')); |
+ throwsStringScannerException('')); |
}); |
test('defaults to the current position', () { |