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

Unified Diff: pkg/args/test/command_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/args_test.dart ('k') | pkg/args/test/parse_all_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/test/command_test.dart
diff --git a/pkg/args/test/command_test.dart b/pkg/args/test/command_test.dart
index 6115ab1c2d323bd935f5c5d5b9944346cd3ae87d..1380e160087914b36198eb1a5cbdef90caea531b 100644
--- a/pkg/args/test/command_test.dart
+++ b/pkg/args/test/command_test.dart
@@ -6,8 +6,9 @@ library command_test;
import 'package:unittest/unittest.dart';
import 'package:args/args.dart';
+import 'utils.dart';
-main() {
+void main() {
group('ArgParser.addCommand()', () {
test('creates a new ArgParser if none is given', () {
var parser = new ArgParser();
@@ -204,11 +205,3 @@ main() {
});
});
}
-
-throwsIllegalArg(function) {
- expect(function, throwsArgumentError);
-}
-
-throwsFormat(ArgParser parser, List<String> args) {
- expect(() => parser.parse(args), throwsFormatException);
-}
« no previous file with comments | « pkg/args/test/args_test.dart ('k') | pkg/args/test/parse_all_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698