From 728da0e65aa48766ba9bd92023ee157e1f5d2b14 Mon Sep 17 00:00:00 2001 From: Jarryd Beck Date: Fri, 26 Aug 2016 19:09:40 +1000 Subject: [PATCH] add some more tests --- test/options.cpp | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/test/options.cpp b/test/options.cpp index 2546eb9..e6eae0c 100644 --- a/test/options.cpp +++ b/test/options.cpp @@ -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() == "value"); + CHECK(options["a"].as() == "b"); } -- libgit2 0.21.4