mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-20 03:46:44 +00:00
Fix short option error (#4796)
"unsigned char" prints as an integer, not a char --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
1 parent
2faff26f92
commit
a3e66d6116
2 files changed
+6
-1
No files matched your search
@@ -188,6 +188,10 @@ TEST(ArgParserTest, ShortArgs) {
|
||||
EXPECT_THAT(integer_option, Eq(123));
|
||||
|
||||
TestRawOstream os;
|
||||
|
||||
EXPECT_THAT(parse({"-v"}, os), IsError(StrEq("unknown short option `-v`")));
|
||||
EXPECT_THAT(parse({"-xvx"}, os), IsError(StrEq("unknown short option `-v`")));
|
||||
|
||||
EXPECT_THAT(
|
||||
parse({"-xzf"}, os),
|
||||
IsError(StrEq("option `-z` (short for `--option2`) requires a value to "
|
||||
|
||||
Reference in new issue
Block a user