Commit 728da0e65aa48766ba9bd92023ee157e1f5d2b14

Authored by Jarryd Beck
1 parent 2f86fb1d

add some more tests

Showing 1 changed file with 5 additions and 0 deletions
test/options.cpp
... ... @@ -59,4 +59,9 @@ TEST_CASE("Basic options", "[options]")
59 59 options.parse(argc, actual_argv);
60 60  
61 61 CHECK(options.count("long") == 1);
  62 + CHECK(options.count("s") == 1);
  63 + CHECK(options.count("value") == 1);
  64 + CHECK(options.count("a") == 1);
  65 + CHECK(options["value"].as<std::string>() == "value");
  66 + CHECK(options["a"].as<std::string>() == "b");
62 67 }
... ...