mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-02 13:43:52 +00:00
Fixing error code in test
This commit is contained in:
parent
c23661e34b
commit
4755164f39
@ -265,7 +265,7 @@ TEST(Exit, ErrorWithHelp) {
|
||||
try {
|
||||
app.parse(input);
|
||||
} catch (const CLI::CallForHelp &e) {
|
||||
EXPECT_EQ(CLI::ExitCodes::Success, e.exit_code);
|
||||
EXPECT_EQ(static_cast<int>(CLI::ExitCodes::Success), e.get_exit_code());
|
||||
}
|
||||
}
|
||||
|
||||
@ -276,7 +276,7 @@ TEST(Exit, ErrorWithoutHelp) {
|
||||
try {
|
||||
app.parse(input);
|
||||
} catch (const CLI::ParseError &e) {
|
||||
EXPECT_EQ(CLI::ExitCodes::Extras, e.exit_code);
|
||||
EXPECT_EQ(static_cast<int>(CLI::ExitCodes::Extras), e.get_exit_code());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user