From d30f1dda020c8bbe09937b78561e8e0d26fbe08d Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Sat, 18 May 2019 20:53:28 +0100 Subject: [PATCH] Rebased approvals --- .../Baselines/compact.sw.approved.txt | 1 + .../Baselines/console.std.approved.txt | 2 +- .../Baselines/console.sw.approved.txt | 16 +++++++++++++++- .../SelfTest/Baselines/junit.sw.approved.txt | 3 ++- .../SelfTest/Baselines/xml.sw.approved.txt | 19 +++++++++++++++---- 5 files changed, 34 insertions(+), 7 deletions(-) diff --git a/projects/SelfTest/Baselines/compact.sw.approved.txt b/projects/SelfTest/Baselines/compact.sw.approved.txt index 8447e839..e30453d9 100644 --- a/projects/SelfTest/Baselines/compact.sw.approved.txt +++ b/projects/SelfTest/Baselines/compact.sw.approved.txt @@ -1004,6 +1004,7 @@ String.tests.cpp:: passed: ss.c_str() != rawChars for: "hello" != " 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: 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 aa991bd4..40113214 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: 1453 | 1308 passed | 124 failed | 21 failed as expected +assertions: 1454 | 1309 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 e13a6c23..e9dc6908 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -7367,6 +7367,20 @@ String.tests.cpp:: PASSED: with expansion: "hello" != "hello world!" +------------------------------------------------------------------------------- +StringRef + Substrings + c_str() causes copy + Self-assignment after substring +------------------------------------------------------------------------------- +String.tests.cpp: +............................................................................... + +String.tests.cpp:: PASSED: + REQUIRE( isOwned(ss) == true ) +with expansion: + true == true + ------------------------------------------------------------------------------- StringRef Substrings @@ -11424,5 +11438,5 @@ Misc.tests.cpp:: PASSED: =============================================================================== test cases: 267 | 184 passed | 79 failed | 4 failed as expected -assertions: 1470 | 1308 passed | 141 failed | 21 failed as expected +assertions: 1471 | 1309 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 a7b77533..b95c130e 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,7 +1,7 @@ - + @@ -667,6 +667,7 @@ Matchers.tests.cpp: + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index fcd6ff13..0a98869e 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -9179,9 +9179,20 @@ Message from section two "hello" != "hello world!" - +
+ + + isOwned(ss) == true + + + true == true + + + +
+ - +
@@ -13769,7 +13780,7 @@ loose text artifact
- + - +