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

Unified Diff: test/trailing_options_test.dart

Issue 849023002: format code, removed unused variables and deprecated usage (Closed) Base URL: https://github.com/dart-lang/args.git@master
Patch Set: nits Created 5 years, 11 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 | « test/parse_test.dart ('k') | test/usage_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/trailing_options_test.dart
diff --git a/test/trailing_options_test.dart b/test/trailing_options_test.dart
index 2ee860ca2f56b589d579a388139c8c236db55d38..24f6ce73336fe66d346bba417a4ac6c28179cff9 100644
--- a/test/trailing_options_test.dart
+++ b/test/trailing_options_test.dart
@@ -19,9 +19,9 @@ void main() {
parser = new ArgParser(allowTrailingOptions: true);
});
- void expectThrows(List<String> args) =>
- expect(() => parser.parse(args), throwsFormatException,
- reason: "with allowTrailingOptions: true");
+ void expectThrows(List<String> args) => expect(
+ () => parser.parse(args), throwsFormatException,
+ reason: "with allowTrailingOptions: true");
test('collects non-options in rest', () {
parser.addFlag('flag');
@@ -84,8 +84,8 @@ void main() {
test("uses the innermost command's trailing options behavior", () {
var parser = new ArgParser(allowTrailingOptions: true);
parser.addFlag('flag', abbr: 'f');
- var command = parser.addCommand('cmd',
- new ArgParser(allowTrailingOptions: false));
+ var command =
+ parser.addCommand('cmd', new ArgParser(allowTrailingOptions: false));
command.addFlag('verbose', abbr: 'v');
var results = parser.parse(['a', '-f', 'b']);
« no previous file with comments | « test/parse_test.dart ('k') | test/usage_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698