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

Unified Diff: packages/string_scanner/test/error_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/string_scanner/pubspec.yaml ('k') | packages/string_scanner/test/line_scanner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', () {
« no previous file with comments | « packages/string_scanner/pubspec.yaml ('k') | packages/string_scanner/test/line_scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698