Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: test/error_test.dart

Issue 2056933002: Add breaking changes and release 1.0.0. (Closed) Base URL: git@github.com:dart-lang/string_scanner@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | test/string_scanner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', () {
« no previous file with comments | « pubspec.yaml ('k') | test/string_scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698