mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 20:31:10 +01: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:
co-authored by
Richard Smith
parent
2faff26f92
commit
a3e66d6116
@@ -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