From 8218425eb09d23f71055fb68d0789dfe42cc746f Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Sun, 23 Apr 2017 14:09:37 -0400 Subject: [PATCH] Adding one more complex test --- tests/NewParseTest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/NewParseTest.cpp b/tests/NewParseTest.cpp index fb354793..c44db6a4 100644 --- a/tests/NewParseTest.cpp +++ b/tests/NewParseTest.cpp @@ -89,3 +89,12 @@ TEST_F(TApp, BuiltinComplexIgnoreI) { EXPECT_EQ(cx(4,3), comp); } + +TEST_F(TApp, BuiltinComplexFail) { + cx comp {1, 2}; + app.add_complex("-c,--complex", comp); + + args = {"-c", "4"}; + + EXPECT_THROW(run(), CLI::ConversionError); +}