diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 2e76ce75..b07d6f3a 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -940,6 +940,6 @@ with expansion: "first" == "second" =============================================================================== -test cases: 168 | 120 passed | 44 failed | 4 failed as expected -assertions: 968 | 860 passed | 87 failed | 21 failed as expected +test cases: 169 | 121 passed | 44 failed | 4 failed as expected +assertions: 969 | 861 passed | 87 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 41693f3a..b62a9a3c 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -8461,6 +8461,18 @@ PASSED: with expansion: "[\x7F]" == "[\x7F]" +------------------------------------------------------------------------------- +assertions with commas are allowed +------------------------------------------------------------------------------- +TrickyTests.cpp: +............................................................................... + +TrickyTests.cpp:: +PASSED: + REQUIRE( std::vector{1, 2} == std::vector{1, 2} ) +with expansion: + { 1, 2 } == { 1, 2 } + ------------------------------------------------------------------------------- atomic if ------------------------------------------------------------------------------- @@ -9480,6 +9492,6 @@ MiscTests.cpp:: PASSED: =============================================================================== -test cases: 168 | 119 passed | 45 failed | 4 failed as expected -assertions: 970 | 860 passed | 89 failed | 21 failed as expected +test cases: 169 | 120 passed | 45 failed | 4 failed as expected +assertions: 971 | 861 passed | 89 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index ee691ce0..fc9528f7 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,6 +1,6 @@ - + @@ -608,6 +608,7 @@ ExceptionTests.cpp: + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 1373c6d3..001ad64b 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -9085,6 +9085,17 @@ there" + + + + std::vector<int>{1, 2} == std::vector<int>{1, 2} + + + { 1, 2 } == { 1, 2 } + + + + @@ -10128,7 +10139,7 @@ spanner - + - + diff --git a/projects/SelfTest/TrickyTests.cpp b/projects/SelfTest/TrickyTests.cpp index 05053fe3..129fc2a2 100644 --- a/projects/SelfTest/TrickyTests.cpp +++ b/projects/SelfTest/TrickyTests.cpp @@ -398,3 +398,8 @@ TEST_CASE( "has printf", "" ) { // This can cause problems as, currently, stdout itself is not redirect - only the cout (and cerr) buffer printf( "spanner" ); } + +TEST_CASE( "assertions with commas are allowed" ) { + + REQUIRE( std::vector{1, 2} == std::vector{1, 2} ); +}