1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 12:13:52 +00:00

Adding one more complex test

This commit is contained in:
Henry Fredrick Schreiner 2017-04-23 14:09:37 -04:00
parent cd98e70c9e
commit 8218425eb0

View File

@ -89,3 +89,12 @@ TEST_F(TApp, BuiltinComplexIgnoreI) {
EXPECT_EQ(cx(4,3), comp); 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);
}