1
0
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:
Henry Fredrick Schreiner 2017-04-27 16:53:11 -04:00
parent c23661e34b
commit 4755164f39

View File

@ -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());
}
}