diff options
| author | Stefan Boberg <[email protected]> | 2021-10-19 22:22:14 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-19 22:22:14 +0200 |
| commit | 6df4d0b81085c11da1597d120e6b66cc72e5fcce (patch) | |
| tree | 4a9b85d9c177534b8e93c7499a1dc2034740ec53 /zencore/string.cpp | |
| parent | zenserver: disabled named pipes client and exec service by default (diff) | |
| parent | cas: Factored out OpenOrCreateManifest (diff) | |
| download | zen-6df4d0b81085c11da1597d120e6b66cc72e5fcce.tar.xz zen-6df4d0b81085c11da1597d120e6b66cc72e5fcce.zip | |
Merge branch 'gc' of https://github.com/EpicGames/zen into gc
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 8e7921bb6..43381aa5d 100644 --- a/zencore/string.cpp +++ b/zencore/string.cpp @@ -936,6 +936,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; |