mirror of https://github.com/jarro2783/cxxopts.git
add some more tests
This commit is contained in:
parent
2f86fb1de0
commit
728da0e65a
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue