From 31537c43d9c4c99b9d7525753e0b3ebbd13758c9 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 21 May 2019 00:05:39 +0100 Subject: [PATCH] Rebased approvals --- .../Baselines/compact.sw.approved.txt | 7 ++- .../Baselines/console.std.approved.txt | 2 +- .../Baselines/console.sw.approved.txt | 31 +++++------ .../SelfTest/Baselines/junit.sw.approved.txt | 2 +- .../SelfTest/Baselines/xml.sw.approved.txt | 52 ++++++++----------- 5 files changed, 40 insertions(+), 54 deletions(-) diff --git a/projects/SelfTest/Baselines/compact.sw.approved.txt b/projects/SelfTest/Baselines/compact.sw.approved.txt index e30453d9..7c00f483 100644 --- a/projects/SelfTest/Baselines/compact.sw.approved.txt +++ b/projects/SelfTest/Baselines/compact.sw.approved.txt @@ -991,7 +991,6 @@ String.tests.cpp:: passed: isOwned( s ) == false for: false == fals String.tests.cpp:: passed: original == "original" String.tests.cpp:: passed: isSubstring( original ) for: true String.tests.cpp:: passed: isOwned( original ) == false for: false == false -String.tests.cpp:: passed: isSubstring( original ) == false for: false == false String.tests.cpp:: passed: isOwned( original ) for: true String.tests.cpp:: passed: ss.empty() == false for: false == false String.tests.cpp:: passed: ss.size() == 5 for: 5 == 5 @@ -1001,10 +1000,10 @@ String.tests.cpp:: passed: isSubstring( ss ) for: true String.tests.cpp:: passed: isOwned( ss ) == false for: false == false String.tests.cpp:: passed: rawChars == s.currentData() for: "hello world!" == "hello world!" String.tests.cpp:: passed: ss.c_str() != rawChars for: "hello" != "hello world!" -String.tests.cpp:: passed: isSubstring( ss ) == false for: false == false String.tests.cpp:: passed: isOwned( ss ) for: true -String.tests.cpp:: passed: ss.currentData() != s.currentData() for: "hello" != "hello world!" -String.tests.cpp:: passed: isOwned(ss) == true for: true == true +String.tests.cpp:: passed: isOwned(ss) == false for: false == false +String.tests.cpp:: passed: ss == "hello" for: hello == "hello" +String.tests.cpp:: passed: rawChars == ss.currentData() for: "hello world!" == "hello world!" String.tests.cpp:: passed: ss.size() == 6 for: 6 == 6 String.tests.cpp:: passed: std::strcmp( ss.c_str(), "world!" ) == 0 for: 0 == 0 String.tests.cpp:: passed: s.c_str() == s2.c_str() for: "hello world!" == "hello world!" diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 40113214..aa991bd4 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -1300,5 +1300,5 @@ due to unexpected exception with message: =============================================================================== test cases: 267 | 200 passed | 63 failed | 4 failed as expected -assertions: 1454 | 1309 passed | 124 failed | 21 failed as expected +assertions: 1453 | 1308 passed | 124 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index e9dc6908..cca937fe 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -7286,11 +7286,6 @@ String.tests.cpp:: PASSED: with expansion: false == false -String.tests.cpp:: PASSED: - REQUIRE( isSubstring( original ) == false ) -with expansion: - false == false - String.tests.cpp:: PASSED: REQUIRE( isOwned( original ) ) with expansion: @@ -7352,21 +7347,11 @@ String.tests.cpp:: PASSED: with expansion: "hello" != "hello world!" -String.tests.cpp:: PASSED: - REQUIRE( isSubstring( ss ) == false ) -with expansion: - false == false - String.tests.cpp:: PASSED: REQUIRE( isOwned( ss ) ) with expansion: true -String.tests.cpp:: PASSED: - REQUIRE( ss.currentData() != s.currentData() ) -with expansion: - "hello" != "hello world!" - ------------------------------------------------------------------------------- StringRef Substrings @@ -7377,9 +7362,19 @@ String.tests.cpp: ............................................................................... String.tests.cpp:: PASSED: - REQUIRE( isOwned(ss) == true ) + REQUIRE( isOwned(ss) == false ) with expansion: - true == true + false == false + +String.tests.cpp:: PASSED: + REQUIRE( ss == "hello" ) +with expansion: + hello == "hello" + +String.tests.cpp:: PASSED: + REQUIRE( rawChars == ss.currentData() ) +with expansion: + "hello world!" == "hello world!" ------------------------------------------------------------------------------- StringRef @@ -11438,5 +11433,5 @@ Misc.tests.cpp:: PASSED: =============================================================================== test cases: 267 | 184 passed | 79 failed | 4 failed as expected -assertions: 1471 | 1309 passed | 141 failed | 21 failed as expected +assertions: 1470 | 1308 passed | 141 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index b95c130e..f4d8b37d 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,7 +1,7 @@ - + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 0a98869e..7fcb4f5c 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -9065,14 +9065,6 @@ Message from section two false == false - - - isSubstring( original ) == false - - - false == false - - isOwned( original ) @@ -9081,7 +9073,7 @@ Message from section two true - +
@@ -9155,14 +9147,6 @@ Message from section two "hello" != "hello world!" - - - isSubstring( ss ) == false - - - false == false - - isOwned( ss ) @@ -9171,24 +9155,32 @@ Message from section two true - - - ss.currentData() != s.currentData() - - - "hello" != "hello world!" - -
- isOwned(ss) == true + isOwned(ss) == false - true == true + false == false - + + + ss == "hello" + + + hello == "hello" + + + + + rawChars == ss.currentData() + + + "hello world!" == "hello world!" + + +
@@ -13780,7 +13772,7 @@ loose text artifact
- + - +