Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
301-Gen-MapTypeConversion.cpp File Reference
#include <catch2/catch.hpp>
#include <string>
#include <sstream>
Include dependency graph for 301-Gen-MapTypeConversion.cpp:

Go to the source code of this file.

Classes

class  LineGenerator
 

Functions

 TEST_CASE ("filter can convert types inside the generator expression", "[example][generator]")
 

Variables

Catch::Generators::GeneratorWrapper< std::string > lines (std::string)
 

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "filter can convert types inside the generator expression" ,
"" [example][generator] )

Definition at line 47 of file 301-Gen-MapTypeConversion.cpp.

47 {
48 auto num = GENERATE(map<int>([](std::string const& line) { return std::stoi(line); },
49 lines("fake-file")));
50
51 REQUIRE(num > 0);
52}
Catch::Generators::GeneratorWrapper< std::string > lines(std::string)
#define GENERATE(...)
#define REQUIRE(...)
Definition catch.hpp:185

Variable Documentation

◆ lines