Commit 8218425eb09d23f71055fb68d0789dfe42cc746f
1 parent
cd98e70c
Adding one more complex test
Showing
1 changed file
with
9 additions
and
0 deletions
tests/NewParseTest.cpp
| ... | ... | @@ -89,3 +89,12 @@ TEST_F(TApp, BuiltinComplexIgnoreI) { |
| 89 | 89 | |
| 90 | 90 | EXPECT_EQ(cx(4,3), comp); |
| 91 | 91 | } |
| 92 | + | |
| 93 | +TEST_F(TApp, BuiltinComplexFail) { | |
| 94 | + cx comp {1, 2}; | |
| 95 | + app.add_complex("-c,--complex", comp); | |
| 96 | + | |
| 97 | + args = {"-c", "4"}; | |
| 98 | + | |
| 99 | + EXPECT_THROW(run(), CLI::ConversionError); | |
| 100 | +} | ... | ... |