mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05:39 +02:00
Add op+(StringRef, StringRef) -> std::string
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user