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

Unified Diff: packages/args/test/parse_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/args/test/command_test.dart ('k') | packages/args/test/trailing_options_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/args/test/parse_test.dart
diff --git a/packages/args/test/parse_test.dart b/packages/args/test/parse_test.dart
index 39027c2c93fd53bc6cf5af03f95b1cd447361d24..6ce8a1997ddef79a63312a29913a5f0833ccdc71 100644
--- a/packages/args/test/parse_test.dart
+++ b/packages/args/test/parse_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 parse_test;
-
import 'package:test/test.dart';
import 'package:args/args.dart';
import 'utils.dart';
@@ -119,7 +117,7 @@ void main() {
});
test('are invoked even if the flag is not present', () {
- var a = 'not called';
+ var a = true;
var parser = new ArgParser();
parser.addFlag('a', callback: (value) => a = value);
@@ -163,6 +161,10 @@ void main() {
parser.parse(['--a=v', '--a=x']);
expect(a, equals(['v', 'x']));
+
+ // This reified type is important in strong mode so that people can
+ // safely write "as List<String>".
+ expect(a, new isInstanceOf<List<String>>());
});
test('for single present, allowMultiple, options are invoked with '
« no previous file with comments | « packages/args/test/command_test.dart ('k') | packages/args/test/trailing_options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698