From f895e0d95ffcf37898c8a4dffc75bf9fadc7f74a Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 29 Feb 2016 08:13:27 +0000 Subject: [PATCH] Rebased approvals following colour changes --- .../Baselines/console.std.approved.txt | 2 +- .../Baselines/console.sw.approved.txt | 66 +++++++++++++--- .../SelfTest/Baselines/junit.sw.approved.txt | 9 ++- .../SelfTest/Baselines/xml.sw.approved.txt | 78 ++++++++++++++++--- 4 files changed, 132 insertions(+), 23 deletions(-) diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 7bbae96e..29870b93 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -831,5 +831,5 @@ with expansion: =============================================================================== test cases: 167 | 124 passed | 42 failed | 1 failed as expected -assertions: 914 | 818 passed | 83 failed | 13 failed as expected +assertions: 919 | 823 passed | 83 failed | 13 failed as expected diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index d8c0b9b9..cd73c2a7 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -4348,8 +4348,8 @@ with expansion: ------------------------------------------------------------------------------- Process can be configured on command line - force-colour - --force-colour + use-colour + without option ------------------------------------------------------------------------------- TestMain.cpp: ............................................................................... @@ -4360,14 +4360,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: ............................................................................... @@ -4378,9 +4378,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 @@ -9046,5 +9094,5 @@ with expansion: =============================================================================== test cases: 167 | 123 passed | 43 failed | 1 failed as expected -assertions: 916 | 818 passed | 85 failed | 13 failed as expected +assertions: 921 | 823 passed | 85 failed | 13 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index 18792059..110ee8cc 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,5 +1,5 @@ - + @@ -518,8 +518,11 @@ MiscTests.cpp: - - + + + + + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index e88e47eb..c0af02fb 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -4567,8 +4567,8 @@ -
-
+
+
parseIntoConfig( argv, config ) @@ -4579,18 +4579,18 @@ - config.forceColour + config.useColour == UseColour::Auto - true + 0 == 0
-
-
+
+
parseIntoConfig( argv, config ) @@ -4601,16 +4601,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" ) + + + +
+ +
@@ -9505,7 +9563,7 @@ there"
- + - +