mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Fix uninit memory in Clara tests
This commit is contained in:
		| @@ -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") { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský