Add op+(StringRef, StringRef) -> std::string

This commit is contained in:
Martin Hořeňovský
2020-05-31 22:30:41 +02:00
parent f2b9508081
commit 317145514f
10 changed files with 89 additions and 7 deletions

View File

@@ -9449,6 +9449,32 @@ String.tests.cpp:<line number>: PASSED:
with expansion:
11 == 11
-------------------------------------------------------------------------------
StringRef
std::string += StringRef
-------------------------------------------------------------------------------
String.tests.cpp:<line number>
...............................................................................
String.tests.cpp:<line number>: PASSED:
REQUIRE( lhs == "some string += the stringref contents" )
with expansion:
"some string += the stringref contents"
==
"some string += the stringref contents"
-------------------------------------------------------------------------------
StringRef
StringRef + StringRef
-------------------------------------------------------------------------------
String.tests.cpp:<line number>
...............................................................................
String.tests.cpp:<line number>: PASSED:
REQUIRE( together == "abrakadabra" )
with expansion:
"abrakadabra" == "abrakadabra"
-------------------------------------------------------------------------------
StringRef at compilation time
Simple constructors
@@ -15033,5 +15059,5 @@ Misc.tests.cpp:<line number>: PASSED:
===============================================================================
test cases: 337 | 247 passed | 86 failed | 4 failed as expected
assertions: 1941 | 1772 passed | 148 failed | 21 failed as expected
assertions: 1943 | 1774 passed | 148 failed | 21 failed as expected