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

Unified Diff: pkg/args/test/parse_all_test.dart

Issue 88553003: pkg/args: a bunch of test cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 7 years, 1 month 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 | « pkg/args/test/command_test.dart ('k') | pkg/args/test/parse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/test/parse_all_test.dart
diff --git a/pkg/args/test/parse_all_test.dart b/pkg/args/test/parse_all_test.dart
index 8498ae672c63da31b5f40868a260970ed279d941..d404c2f906c209a824ede715d639cf515f871d91 100644
--- a/pkg/args/test/parse_all_test.dart
+++ b/pkg/args/test/parse_all_test.dart
@@ -7,7 +7,7 @@ library parse_all_test;
import 'package:unittest/unittest.dart';
import 'package:args/args.dart';
-main() {
+void main() {
group('ArgParser.parse(allowTrailingOptions: true) '
'starting with a non-option', () {
test('followed by flag', () {
@@ -57,7 +57,8 @@ main() {
});
});
}
-expectThrows(ArgParser parser, List<String> args) =>
+
+void expectThrows(ArgParser parser, List<String> args) =>
expect(() => parser.parse(args, allowTrailingOptions: true),
throwsFormatException,
reason: "with allowTrailingOptions: true");
« no previous file with comments | « pkg/args/test/command_test.dart ('k') | pkg/args/test/parse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698