Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/IntrospectiveTests/String.tests.cpp
diff options
context:
space:
mode:
authorPhil Nash2019-04-21 20:03:44 +0300
committerPhil Nash2019-04-21 20:03:44 +0300
commit9d5d71986831d044527fe987ed8c41a4f69a3eea (patch)
tree983cbfcc4d715283170f4bb3b8d6de6650b51377 /projects/SelfTest/IntrospectiveTests/String.tests.cpp
parent02f13cf95ac826dfa129071a27552b359e55f71c (diff)
downloadcatch3-9d5d71986831d044527fe987ed8c41a4f69a3eea.tar.gz
Changed splitString to splitStringRef
Now takes and returns StringRefs
Diffstat (limited to 'projects/SelfTest/IntrospectiveTests/String.tests.cpp')
-rw-r--r--projects/SelfTest/IntrospectiveTests/String.tests.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/projects/SelfTest/IntrospectiveTests/String.tests.cpp b/projects/SelfTest/IntrospectiveTests/String.tests.cpp
index 007774a9..cb2c350c 100644
--- a/projects/SelfTest/IntrospectiveTests/String.tests.cpp
+++ b/projects/SelfTest/IntrospectiveTests/String.tests.cpp
@@ -205,11 +205,12 @@ TEST_CASE( "replaceInPlace", "[Strings][StringManip]" ) {
TEST_CASE( "splitString", "[Strings]" ) {
using namespace Catch::Matchers;
- using Catch::splitString;
+ using Catch::splitStringRef;
+ using Catch::StringRef;
- CHECK_THAT( splitString("", ',' ), Equals(std::vector<std::string>() ) );
- CHECK_THAT( splitString("abc", ',' ), Equals(std::vector<std::string>{"abc"} ) );
- CHECK_THAT( splitString("abc,def", ',' ), Equals(std::vector<std::string>{"abc", "def"} ) );
+ CHECK_THAT( splitStringRef("", ',' ), Equals(std::vector<StringRef>() ) );
+ CHECK_THAT( splitStringRef("abc", ',' ), Equals(std::vector<StringRef>{"abc"} ) );
+ CHECK_THAT( splitStringRef("abc,def", ',' ), Equals(std::vector<StringRef>{"abc", "def"} ) );
}