Index: test/error_test.dart |
diff --git a/test/error_test.dart b/test/error_test.dart |
index ff451940e287ac04d5a69860ae1eca2a9a44b13c..166077d5e048feb7b69083230cabb0062966d10b 100644 |
--- a/test/error_test.dart |
+++ b/test/error_test.dart |
@@ -59,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', () { |