diff --git a/CHANGELOG.md b/CHANGELOG.md index bab4cbcf..6fdff12d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,9 +18,11 @@ Other, non-user facing changes: * Informational printout now added to CTest [#95] * Better single file generation [#95] * Added support for GTest on MSVC 2017 (but not in C++17 mode, will need next version of GTest) +* Types now have a specific size, separate from the expected number - cleaner and more powerful internally [#92] [#64]: https://github.com/CLIUtils/CLI11/issues/64 [#90]: https://github.com/CLIUtils/CLI11/issues/90 +[#92]: https://github.com/CLIUtils/CLI11/issues/92 [#95]: https://github.com/CLIUtils/CLI11/pull/95 diff --git a/tests/AppTest.cpp b/tests/AppTest.cpp index b7f36611..85d7e653 100644 --- a/tests/AppTest.cpp +++ b/tests/AppTest.cpp @@ -358,16 +358,16 @@ TEST_F(TApp, NoMissingValueMoreThan) { std::vector vals2; app.add_option("-v", vals1)->expected(-2); app.add_option("--vals", vals2)->expected(-2); - + args = {"-v", "2", "3", "4"}; run(); - EXPECT_EQ(vals1, std::vector({2,3,4})); - + EXPECT_EQ(vals1, std::vector({2, 3, 4})); + app.reset(); - + args = {"--vals", "2", "3", "4"}; run(); - EXPECT_EQ(vals2, std::vector({2,3,4})); + EXPECT_EQ(vals2, std::vector({2, 3, 4})); } TEST_F(TApp, NotRequiredOptsSingle) {