mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 19:05:40 +02:00
Provide a public method to get StringRef's underlying pointer
This allows reducing the amount of friends needed for its interface and some extra tricks later. The bad part is that the pointer can become invalidated via calls to other StringRef's public methods, but c'est la vie.
This commit is contained in:
@@ -5076,7 +5076,7 @@ with expansion:
|
||||
|
||||
String.tests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( rawChars == data( s ) )
|
||||
REQUIRE( rawChars == s.currentData() )
|
||||
with expansion:
|
||||
"hello world!" == "hello world!"
|
||||
|
||||
@@ -5100,7 +5100,7 @@ with expansion:
|
||||
|
||||
String.tests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( data( ss ) != data( s ) )
|
||||
REQUIRE( ss.currentData() != s.currentData() )
|
||||
with expansion:
|
||||
"hello" != "hello world!"
|
||||
|
||||
|
Reference in New Issue
Block a user