Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit 12b5142

Browse files
committed
add test
Signed-off-by: ふぁ <[email protected]>
1 parent 9941fe3 commit 12b5142

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_utils.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,16 @@ void throwsFormat(ArgParser parser, List<String> args, {String? reason}) {
349349
}
350350

351351
void throwsArgParserException(ArgParser parser, List<String> args,
352-
String message, List<String> commands, String arg, int offset) {
352+
String message, List<String> commands, String argumentName, int offset) {
353353
try {
354354
parser.parse(args);
355355
fail('Expected an ArgParserException');
356356
} on ArgParserException catch (e) {
357357
expect(e.message, message);
358358
expect(e.commands, commands);
359-
expect(e.argumentName, arg);
359+
expect(e.argumentName, argumentName);
360+
expect(e.source, args);
361+
expect(e.offset, offset);
360362
} catch (e) {
361363
fail('Expected an ArgParserException, but got $e');
362364
}

0 commit comments

Comments
 (0)