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:
parent
cd98e70c9e
commit
8218425eb0
@ -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);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user