File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ PROJECT_NAME = "args"
38
38
# could be handy for archiving the generated documentation or if some version
39
39
# control system is used.
40
40
41
- PROJECT_NUMBER = 6.1 .0
41
+ PROJECT_NUMBER = 6.2 .0
42
42
43
43
# Using the PROJECT_BRIEF tag one can provide an optional one line description
44
44
# for a project that appears at the top of each page and should give viewer a
Original file line number Diff line number Diff line change @@ -622,6 +622,11 @@ TEST_CASE("Implicit values work as expected", "[args]")
622
622
623
623
REQUIRE_NOTHROW (parser.ParseArgs (std::vector<std::string>{" -j" , " -f" }));
624
624
REQUIRE (args::get (j) == 0 );
625
+ REQUIRE (foo);
626
+
627
+ REQUIRE_NOTHROW (parser.ParseArgs (std::vector<std::string>{" -f" }));
628
+ REQUIRE (args::get (j) == 1 );
629
+ REQUIRE_FALSE (j);
625
630
}
626
631
627
632
TEST_CASE (" Nargs work as expected" , " [args]" )
@@ -657,6 +662,8 @@ TEST_CASE("Nargs work as expected", "[args]")
657
662
vec.push_back (c);
658
663
}
659
664
665
+ REQUIRE ((vec == std::vector<int >{1 , 2 , 3 }));
666
+ vec.assign (std::begin (b), std::end (b));
660
667
REQUIRE ((vec == std::vector<int >{1 , 2 , 3 }));
661
668
662
669
parser.SetArgumentSeparations (true , true , false , false );
You can’t perform that action at this time.
0 commit comments