From 2d8d659ab146eb86df2fef7322c13c7b3a86e43b Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Mon, 20 Nov 2017 16:44:44 -0500 Subject: [PATCH] Increasing test coverage --- tests/HelpTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/HelpTest.cpp b/tests/HelpTest.cpp index b89cbc45..5576102e 100644 --- a/tests/HelpTest.cpp +++ b/tests/HelpTest.cpp @@ -383,4 +383,6 @@ TEST(Exit, ExitCodes) { EXPECT_EQ(0, app.exit(CLI::Success())); EXPECT_EQ(0, app.exit(CLI::CallForHelp())); EXPECT_EQ(i, app.exit(CLI::ExtrasError("Thing"))); + EXPECT_EQ(42, app.exit(CLI::RuntimeError(42))); + EXPECT_EQ(1, app.exit(CLI::RuntimeError())); // Not sure if a default here is a good thing }