diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-22 00:24:21 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-22 21:09:36 -0700 |
| commit | 5f906736863f35a7018aaa11a7cac408229c21cf (patch) | |
| tree | 5449078c9489852efa511803cd06e3e8bc5c7728 /Source/UnitTests/Common/StringUtilTest.cpp | |
| parent | de67c4c93bd15846f68df4006dd2c93fba5720d2 (diff) | |
StringUtil: Remove `JoinStrings`
With 12 uses of `JoinStrings` in the codebase vs 36 uses of `fmt::join`, fmtlib's range adapter for string concatenation with delimiters is clearly the preferred option.
Diffstat (limited to 'Source/UnitTests/Common/StringUtilTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/StringUtilTest.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/UnitTests/Common/StringUtilTest.cpp b/Source/UnitTests/Common/StringUtilTest.cpp index 357f7f9500..f887157d52 100644 --- a/Source/UnitTests/Common/StringUtilTest.cpp +++ b/Source/UnitTests/Common/StringUtilTest.cpp @@ -7,15 +7,6 @@ #include "Common/StringUtil.h" -TEST(StringUtil, JoinStrings) -{ - EXPECT_EQ("", JoinStrings({}, ", ")); - EXPECT_EQ("a", JoinStrings({"a"}, ",")); - EXPECT_EQ("ab", JoinStrings({"a", "b"}, "")); - EXPECT_EQ("a, bb, c", JoinStrings({"a", "bb", "c"}, ", ")); - EXPECT_EQ("???", JoinStrings({"?", "?"}, "?")); -} - TEST(StringUtil, StringPopBackIf) { std::string abc = "abc"; |
