From 681f5daa135c678beea610c927189c9e2f0fe34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Thu, 8 Feb 2018 15:00:56 +0100 Subject: [PATCH] Update approval tests --- .../Baselines/compact.sw.approved.txt | 3 ++ .../Baselines/console.std.approved.txt | 2 +- .../Baselines/console.sw.approved.txt | 27 +++++++++++++- .../SelfTest/Baselines/junit.sw.approved.txt | 3 +- .../SelfTest/Baselines/xml.sw.approved.txt | 35 ++++++++++++++++--- 5 files changed, 63 insertions(+), 7 deletions(-) diff --git a/projects/SelfTest/Baselines/compact.sw.approved.txt b/projects/SelfTest/Baselines/compact.sw.approved.txt index 947ef425..57afb2fd 100644 --- a/projects/SelfTest/Baselines/compact.sw.approved.txt +++ b/projects/SelfTest/Baselines/compact.sw.approved.txt @@ -652,6 +652,9 @@ String.tests.cpp:: passed: stdStr == "a stringref" for: "a stringre String.tests.cpp:: passed: stdStr.size() == sr.size() for: 11 == 11 String.tests.cpp:: passed: stdStr == "a stringref" for: "a stringref" == "a stringref" String.tests.cpp:: passed: stdStr.size() == sr.size() for: 11 == 11 +String.tests.cpp:: passed: ascii.numberOfCharacters() == ascii.size() for: 39 == 39 +String.tests.cpp:: passed: simpleu8.numberOfCharacters() == 30 for: 30 == 30 +String.tests.cpp:: passed: emojis.numberOfCharacters() == 9 for: 9 == 9 ToStringChrono.tests.cpp:: passed: minute == seconds for: 1 m == 60 s ToStringChrono.tests.cpp:: passed: hour != seconds for: 1 h != 60 s ToStringChrono.tests.cpp:: passed: micro != milli for: 1 us != 1 ms diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index a94cc4fa..1e9d2c31 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -1065,5 +1065,5 @@ with expansion: =============================================================================== test cases: 198 | 147 passed | 47 failed | 4 failed as expected -assertions: 996 | 870 passed | 105 failed | 21 failed as expected +assertions: 999 | 873 passed | 105 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 2b7159e6..fd9dfb6a 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -5239,6 +5239,31 @@ PASSED: with expansion: 11 == 11 +------------------------------------------------------------------------------- +StringRef + Counting utf-8 codepoints +------------------------------------------------------------------------------- +String.tests.cpp: +............................................................................... + +String.tests.cpp:: +PASSED: + REQUIRE( ascii.numberOfCharacters() == ascii.size() ) +with expansion: + 39 == 39 + +String.tests.cpp:: +PASSED: + REQUIRE( simpleu8.numberOfCharacters() == 30 ) +with expansion: + 30 == 30 + +String.tests.cpp:: +PASSED: + REQUIRE( emojis.numberOfCharacters() == 9 ) +with expansion: + 9 == 9 + ------------------------------------------------------------------------------- Stringifying std::chrono::duration helpers ------------------------------------------------------------------------------- @@ -8442,5 +8467,5 @@ PASSED: =============================================================================== test cases: 198 | 133 passed | 61 failed | 4 failed as expected -assertions: 1007 | 866 passed | 120 failed | 21 failed as expected +assertions: 1010 | 869 passed | 120 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index b99f0b8c..7c0c67f6 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,7 +1,7 @@ - + @@ -562,6 +562,7 @@ String.tests.cpp: + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index ceac33bf..c08b575a 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -5582,7 +5582,7 @@ Message from section two - +
@@ -5992,6 +5992,33 @@ Message from section two
+
+ + + ascii.numberOfCharacters() == ascii.size() + + + 39 == 39 + + + + + simpleu8.numberOfCharacters() == 30 + + + 30 == 30 + + + + + emojis.numberOfCharacters() == 9 + + + 9 == 9 + + + +
@@ -8375,7 +8402,7 @@ loose text artifact - +
@@ -9296,7 +9323,7 @@ loose text artifact
- + - +