catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix uninit memory in Clara tests
- Commit
07cdef2096ad38ec386ee5e4d7705978038dc651- Author
- Martin Hořeňovský ·
- Parents
5baa29b6b940
Changes
tests/SelfTest/IntrospectiveTests/Clara.tests.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp b/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp index f6110a7b..2cbf05b8 100644 --- a/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp @@ -52,12 +52,11 @@ TEST_CASE("Clara::Arg supports single-arg parse the way Opt does", "[clara][arg] } TEST_CASE("Clara::Opt supports accept-many lambdas", "[clara][opt]") { - std::string name; using namespace Catch::Clara; std::vector<std::string> res; const auto push_to_res = [&](std::string const& s) { res.push_back(s); - return ParserResult::ok(); + return ParserResult::ok( ParseResultType::Matched ); }; SECTION("Parsing fails on multiple options without accept_many") {