diff options
| author | Martin Ridgers <[email protected]> | 2021-10-20 13:19:39 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-20 13:19:39 +0200 |
| commit | 13feae57532a1ad4d14feb5ee00f397fa6c370cc (patch) | |
| tree | 4bfdfe0aa239435baddef9ee64965c39ec7f6551 /zencore/string.cpp | |
| parent | Compile fixes due to std::fs::path's differing character types (diff) | |
| parent | zen server: Added root manifest, with support for explicit schema versioning (diff) | |
| download | zen-13feae57532a1ad4d14feb5ee00f397fa6c370cc.tar.xz zen-13feae57532a1ad4d14feb5ee00f397fa6c370cc.zip | |
Merged main
Diffstat (limited to 'zencore/string.cpp')
| -rw-r--r-- | zencore/string.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zencore/string.cpp b/zencore/string.cpp index 76cd69871..3fa32692e 100644 --- a/zencore/string.cpp +++ b/zencore/string.cpp @@ -945,6 +945,12 @@ TEST_CASE("string") CHECK(HashStringAsLowerDjb2("aBCd"sv) == HashStringDjb2(ToLower("aBCd"sv))); } + SUBCASE("tolower") + { + CHECK_EQ(ToLower("te!st"sv), "te!st"sv); + CHECK_EQ(ToLower("TE%St"sv), "te%st"sv); + } + SUBCASE("ForEachStrTok") { const auto Tokens = "here,is,my,different,tokens"sv; |