Skip to content

Commit ff71801

Browse files
committed
Split a unit test into two
1 parent d003e05 commit ff71801

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

test/unittest/test_argument_parser.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,18 @@ TEST_CASE("Adding an optional argument with required option does not result in e
344344
}
345345

346346
TEST_CASE("ArgumentParser supports mutually exclusive groups")
347+
{
348+
auto parser = argparse::ArgumentParser();
349+
350+
CHECK_NOTHROW(parser.add_mutually_exclusive_group());
351+
}
352+
353+
TEST_CASE("Adding an optional argument to a mutually exclusive group does not result in error")
347354
{
348355
auto parser = argparse::ArgumentParser();
349356
auto group = parser.add_mutually_exclusive_group();
350-
group.add_argument("-o");
357+
358+
CHECK_NOTHROW(group.add_argument("-o"));
351359
}
352360

353361
TEST_CASE("Test combining Handle values")

0 commit comments

Comments
 (0)