Index: pkg/args/test/parse_test.dart |
diff --git a/pkg/args/test/parse_test.dart b/pkg/args/test/parse_test.dart |
index ab1d1306f8db81e5749ce59be81f6d7a7b2a9ff9..715c2269218537157fff9a758ef37005905de3cc 100644 |
--- a/pkg/args/test/parse_test.dart |
+++ b/pkg/args/test/parse_test.dart |
@@ -2,13 +2,23 @@ |
// 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 args_test; |
+library parse_test; |
import 'package:unittest/unittest.dart'; |
import 'package:args/args.dart'; |
main() { |
group('ArgParser.parse()', () { |
+ test('does not destructively modify the argument list', () { |
+ var parser = new ArgParser(); |
+ parser.addFlag('verbose'); |
+ |
+ var args = ['--verbose']; |
+ var results = parser.parse(args); |
+ expect(args, equals(['--verbose'])); |
+ expect(results['verbose'], isTrue); |
+ }); |
+ |
group('flags', () { |
test('are true if present', () { |
var parser = new ArgParser(); |