From 4755164f3925271a41314c3048afdb8cacee7385 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 27 Apr 2017 16:53:11 -0400 Subject: [PATCH] Fixing error code in test --- tests/HelpTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/HelpTest.cpp b/tests/HelpTest.cpp index a5f4bf3d..65484e2d 100644 --- a/tests/HelpTest.cpp +++ b/tests/HelpTest.cpp @@ -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(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(CLI::ExitCodes::Extras), e.get_exit_code()); } }