Browse Source

Test: Check non existent arguments

master
Riyyi 3 years ago
parent
commit
952ba588f7
  1. 17
      test/testutilargparser.cpp

17
test/testutilargparser.cpp

@ -32,6 +32,23 @@ TEST_CASE(NoArguments)
// ----------------------------------------- // -----------------------------------------
TEST_CASE(NonExistentArguments)
{
auto result = runParser({ "-n", "-e" });
EXPECT_EQ(result, false);
result = runParser({ "--non", "--existent" });
EXPECT_EQ(result, false);
result = runParser({ "-n", "-e", "--non", "--existent" });
EXPECT_EQ(result, false);
result = runParser({ "no", "handling" });
EXPECT_EQ(result, false);
}
// -----------------------------------------
TEST_CASE(BoolOptions) TEST_CASE(BoolOptions)
{ {
// Short option // Short option

Loading…
Cancel
Save