add some more tests

This commit is contained in:
Jarryd Beck 2016-08-26 19:09:40 +10:00
parent 2f86fb1de0
commit 728da0e65a

View File

@ -59,4 +59,9 @@ TEST_CASE("Basic options", "[options]")
options.parse(argc, actual_argv);
CHECK(options.count("long") == 1);
CHECK(options.count("s") == 1);
CHECK(options.count("value") == 1);
CHECK(options.count("a") == 1);
CHECK(options["value"].as<std::string>() == "value");
CHECK(options["a"].as<std::string>() == "b");
}