Fix unit tests
This commit is contained in:
parent
db0c4abe10
commit
a8482632c3
@ -94,7 +94,7 @@ TEST_CASE("Basic options", "[options]")
|
|||||||
CHECK(arguments[2].key() == "value");
|
CHECK(arguments[2].key() == "value");
|
||||||
CHECK(arguments[3].key() == "av");
|
CHECK(arguments[3].key() == "av");
|
||||||
|
|
||||||
CHECK_THROWS_AS(result["nothing"].as<std::string>(), std::domain_error&);
|
CHECK_THROWS_AS(result["nothing"], cxxopts::option_required_exception&);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Short options", "[options]")
|
TEST_CASE("Short options", "[options]")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user