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
Enable some more generator tests in standard test run
- Commit
2a4725b40eaaaf385b08cdc36164baaa3c5e89d1- Author
- Martin Hořeňovský ·
- Parents
a81c01d4f99c
Changes
projects/SelfTest/UsageTests/Generators.tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/SelfTest/UsageTests/Generators.tests.cpp b/projects/SelfTest/UsageTests/Generators.tests.cpp index 3f37793b..9242174a 100644 --- a/projects/SelfTest/UsageTests/Generators.tests.cpp +++ b/projects/SelfTest/UsageTests/Generators.tests.cpp @@ -56,7 +56,7 @@ TEST_CASE( "10x10 ints" ) { // but it demonstrates a possible usage. // Spelling out the pair like this is a bit verbose, so read on for better examples // - the use of structured bindings here is an optional convenience -TEST_CASE( "strlen", "[.][approvals]" ) { +TEST_CASE( "strlen", "[approvals]" ) { auto [test_input, expected] = GENERATE( values<std::pair<std::string_view, size_t>>({ {"one", 3}, {"two", 3}, @@ -69,7 +69,7 @@ TEST_CASE( "strlen", "[.][approvals]" ) { // A nicer way to do pairs (or more) of values - using the table generator. // Note, you must specify the types up-front. -TEST_CASE( "strlen2", "[.][approvals]" ) { +TEST_CASE( "strlen2", "[approvals]" ) { auto [test_input, expected] = GENERATE( table<std::string, size_t>({ {"one", 3}, {"two", 3}, @@ -118,7 +118,7 @@ TEST_CASE( "Random numbers in a range", "[.][approvals]" ) { static auto eatCucumbers( int start, int eat ) -> int { return start-eat; } -SCENARIO("Eating cucumbers", "[.][approvals]") { +SCENARIO("Eating cucumbers", "[approvals]") { auto [start, eat, left] = GENERATE( table<int,int,int> ({ { 12, 5, 7 },