diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 7faa19d9..806f2f47 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -830,6 +830,6 @@ with expansion: "first" == "second" =============================================================================== -test cases: 165 | 122 passed | 42 failed | 1 failed as expected -assertions: 768 | 672 passed | 83 failed | 13 failed as expected +test cases: 167 | 123 passed | 42 failed | 2 failed as expected +assertions: 774 | 678 passed | 78 failed | 18 failed as expected diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 6c84d784..9ebc0c70 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -2631,6 +2631,17 @@ with expansion: == 9223372036854775807 (0x) +------------------------------------------------------------------------------- +This test 'should' fail but doesn't +------------------------------------------------------------------------------- +MiscTests.cpp: +............................................................................... + +MiscTests.cpp:: +PASSED: +with message: + oops! + ------------------------------------------------------------------------------- Process can be configured on command line default - no arguments @@ -3028,8 +3039,8 @@ with expansion: ------------------------------------------------------------------------------- Process can be configured on command line - force-colour - --force-colour + use-colour + without option ------------------------------------------------------------------------------- TestMain.cpp: ............................................................................... @@ -3040,14 +3051,14 @@ PASSED: TestMain.cpp:: PASSED: - REQUIRE( config.forceColour ) + REQUIRE( config.useColour == UseColour::Auto ) with expansion: - true + 0 == 0 ------------------------------------------------------------------------------- Process can be configured on command line - force-colour - without --force-colour + use-colour + auto ------------------------------------------------------------------------------- TestMain.cpp: ............................................................................... @@ -3058,9 +3069,57 @@ PASSED: TestMain.cpp:: PASSED: - REQUIRE( !config.forceColour ) + REQUIRE( config.useColour == UseColour::Auto ) with expansion: - true + 0 == 0 + +------------------------------------------------------------------------------- +Process can be configured on command line + use-colour + yes +------------------------------------------------------------------------------- +TestMain.cpp: +............................................................................... + +TestMain.cpp:: +PASSED: + CHECK_NOTHROW( parseIntoConfig( argv, config ) ) + +TestMain.cpp:: +PASSED: + REQUIRE( config.useColour == UseColour::Yes ) +with expansion: + 1 == 1 + +------------------------------------------------------------------------------- +Process can be configured on command line + use-colour + no +------------------------------------------------------------------------------- +TestMain.cpp: +............................................................................... + +TestMain.cpp:: +PASSED: + CHECK_NOTHROW( parseIntoConfig( argv, config ) ) + +TestMain.cpp:: +PASSED: + REQUIRE( config.useColour == UseColour::No ) +with expansion: + 2 == 2 + +------------------------------------------------------------------------------- +Process can be configured on command line + use-colour + error +------------------------------------------------------------------------------- +TestMain.cpp: +............................................................................... + +TestMain.cpp:: +PASSED: + REQUIRE_THROWS_WITH( parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) ) ------------------------------------------------------------------------------- Long strings can be wrapped @@ -6337,6 +6396,16 @@ with expansion: == "{ { "hello" }, { "world" } }" +------------------------------------------------------------------------------- +multithreaded sections + test +------------------------------------------------------------------------------- +ThreadedTests.cpp: +............................................................................... + + +No assertions in section 'test' + ------------------------------------------------------------------------------- Parse test names and tags Empty test spec should have no filters @@ -7725,6 +7794,6 @@ with expansion: 1 > 0 =============================================================================== -test cases: 165 | 121 passed | 43 failed | 1 failed as expected -assertions: 770 | 672 passed | 85 failed | 13 failed as expected +test cases: 167 | 121 passed | 44 failed | 2 failed as expected +assertions: 777 | 678 passed | 81 failed | 18 failed as expected diff --git a/projects/SelfTest/Baselines/console.swa4.approved.txt b/projects/SelfTest/Baselines/console.swa4.approved.txt index 0793f1d1..76af9f55 100644 --- a/projects/SelfTest/Baselines/console.swa4.approved.txt +++ b/projects/SelfTest/Baselines/console.swa4.approved.txt @@ -485,7 +485,131 @@ ConditionTests.cpp:: FAILED: with expansion: 9.1f != Approx( 9.1000003815 ) -=============================================================================== -test cases: 19 | 15 passed | 3 failed | 1 failed as expected -assertions: 62 | 56 passed | 4 failed | 2 failed as expected +------------------------------------------------------------------------------- +Ordering comparison checks that should succeed +------------------------------------------------------------------------------- +ConditionTests.cpp: +............................................................................... + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven < 8 ) +with expansion: + 7 < 8 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven > 6 ) +with expansion: + 7 > 6 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven > 0 ) +with expansion: + 7 > 0 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven > -1 ) +with expansion: + 7 > -1 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven >= 7 ) +with expansion: + 7 >= 7 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven >= 6 ) +with expansion: + 7 >= 6 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven <= 7 ) +with expansion: + 7 <= 7 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.int_seven <= 8 ) +with expansion: + 7 <= 8 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.float_nine_point_one > 9 ) +with expansion: + 9.1f > 9 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.float_nine_point_one < 10 ) +with expansion: + 9.1f < 10 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.float_nine_point_one < 9.2 ) +with expansion: + 9.1f < 9.2 + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.str_hello <= "hello" ) +with expansion: + "hello" <= "hello" + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.str_hello >= "hello" ) +with expansion: + "hello" >= "hello" + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.str_hello < "hellp" ) +with expansion: + "hello" < "hellp" + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.str_hello < "zebra" ) +with expansion: + "hello" < "zebra" + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.str_hello > "hellm" ) +with expansion: + "hello" > "hellm" + +ConditionTests.cpp:: +PASSED: + REQUIRE( data.str_hello > "a" ) +with expansion: + "hello" > "a" + +------------------------------------------------------------------------------- +Ordering comparison checks that should fail +------------------------------------------------------------------------------- +ConditionTests.cpp: +............................................................................... + +ConditionTests.cpp:: FAILED: + CHECK( data.int_seven > 7 ) +with expansion: + 7 > 7 + +ConditionTests.cpp:: FAILED: + CHECK( data.int_seven < 7 ) +with expansion: + 7 < 7 + +=============================================================================== +test cases: 21 | 16 passed | 3 failed | 2 failed as expected +assertions: 81 | 73 passed | 4 failed | 4 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index cbfc69a5..415f76d9 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,5 +1,5 @@ - + @@ -497,6 +497,7 @@ MiscTests.cpp: + @@ -516,8 +517,11 @@ MiscTests.cpp: - - + + + + + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 534eaa74..e098d976 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -665,7 +665,7 @@ 5 != 5 - + @@ -2911,6 +2911,9 @@ + + +
@@ -3393,8 +3396,8 @@
-
-
+
+
parseIntoConfig( argv, config ) @@ -3405,18 +3408,18 @@ - config.forceColour + config.useColour == UseColour::Auto - true + 0 == 0
-
-
+
+
parseIntoConfig( argv, config ) @@ -3427,16 +3430,74 @@ - !config.forceColour + config.useColour == UseColour::Auto - true + 0 == 0
+
+
+ + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + + + + config.useColour == UseColour::Yes + + + 1 == 1 + + + +
+ +
+
+
+ + + parseIntoConfig( argv, config ) + + + parseIntoConfig( argv, config ) + + + + + config.useColour == UseColour::No + + + 2 == 2 + + + +
+ +
+
+
+ + + parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) + + + parseIntoConfig( argv, config ), Contains( "colour mode must be one of" ) + + + +
+ +
@@ -6812,6 +6873,12 @@ there" + +
+ +
+ +
@@ -8331,7 +8398,7 @@ there"
- + - +