From 1f5ec9884cc51747fcaa2116b12e70f09a48c85f Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 6 Feb 2017 16:23:34 +0000 Subject: [PATCH] =?UTF-8?q?Rebased=20approvals=20following=20previous=20re?= =?UTF-8?q?versal=20(d=E2=80=99oh!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Baselines/console.std.approved.txt | 2 +- .../Baselines/console.sw.approved.txt | 36 ++++++++++++++++--- .../SelfTest/Baselines/junit.sw.approved.txt | 10 +++--- .../SelfTest/Baselines/xml.sw.approved.txt | 36 +++++++++++++++---- 4 files changed, 67 insertions(+), 17 deletions(-) diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index ea2e1008..b5f4a482 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -830,5 +830,5 @@ with expansion: =============================================================================== test cases: 157 | 113 passed | 42 failed | 2 failed as expected -assertions: 913 | 817 passed | 78 failed | 18 failed as expected +assertions: 915 | 819 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 2ea4dd0b..fb34373b 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -7982,27 +7982,53 @@ with expansion: ------------------------------------------------------------------------------- XmlEncode - string with control char (1) + string with control char (1) (XML 1.0) ------------------------------------------------------------------------------- MiscTests.cpp: ............................................................................... MiscTests.cpp:: PASSED: - REQUIRE( encode( "[\x01]" ) == "[]" ) + REQUIRE( encode( "[\x01]" ) == "[\\x01]" ) +with expansion: + "[\x01]" == "[\x01]" + +------------------------------------------------------------------------------- +XmlEncode + string with control char (1) (XMl 1.1) +------------------------------------------------------------------------------- +MiscTests.cpp: +............................................................................... + +MiscTests.cpp:: +PASSED: + REQUIRE( encode( "[\x01]", Catch::XmlEncode::ForTextNodes, Catch::XmlEncode::_1_1 ) == "[]" ) with expansion: "[]" == "[]" ------------------------------------------------------------------------------- XmlEncode - string with control char (x7F) + string with control char (x7F) (XML 1.0) ------------------------------------------------------------------------------- MiscTests.cpp: ............................................................................... MiscTests.cpp:: PASSED: - REQUIRE( encode( "[\x7F]" ) == "[]" ) + REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" ) +with expansion: + "[\x7F]" == "[\x7F]" + +------------------------------------------------------------------------------- +XmlEncode + string with control char (x7F) (XML 1.1) +------------------------------------------------------------------------------- +MiscTests.cpp: +............................................................................... + +MiscTests.cpp:: +PASSED: + REQUIRE( encode( "[\x7F]", Catch::XmlEncode::ForTextNodes, Catch::XmlEncode::_1_1 ) == "[]" ) with expansion: "[]" == "[]" @@ -9026,5 +9052,5 @@ PASSED: =============================================================================== test cases: 157 | 112 passed | 43 failed | 2 failed as expected -assertions: 915 | 817 passed | 80 failed | 18 failed as expected +assertions: 917 | 819 passed | 80 failed | 18 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index 55ee56c9..e7e650de 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,6 +1,6 @@ - + - + @@ -538,8 +538,10 @@ ExceptionTests.cpp: - - + + + + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 354ed640..ccb4864b 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -1,4 +1,4 @@ - + @@ -8462,10 +8462,21 @@ there" -
+
- encode( "[\x01]" ) == "[]" + encode( "[\x01]" ) == "[\\x01]" + + + "[\x01]" == "[\x01]" + + + +
+
+ + + encode( "[\x01]", Catch::XmlEncode::ForTextNodes, Catch::XmlEncode::_1_1 ) == "[]" "[]" == "[]" @@ -8473,10 +8484,21 @@ there"
-
+
- encode( "[\x7F]" ) == "[]" + encode( "[\x7F]" ) == "[\\x7F]" + + + "[\x7F]" == "[\x7F]" + + + +
+
+ + + encode( "[\x7F]", Catch::XmlEncode::ForTextNodes, Catch::XmlEncode::_1_1 ) == "[]" "[]" == "[]" @@ -9520,7 +9542,7 @@ there"
- + - +