str/cat: Simplify append logic
Change-Id: I1719fc5cf545d8d5ed5bfc82c32552f22bdfa432
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/str/cat.cpp b/test/str/cat.cpp
index 758facc..ef958ea 100644
--- a/test/str/cat.cpp
+++ b/test/str/cat.cpp
@@ -1,4 +1,5 @@
#include <stdplus/str/cat.hpp>
+#include <stdplus/zstring_view.hpp>
#include <string>
#include <string_view>
@@ -23,7 +24,8 @@
TEST(StrCat, Multi)
{
- EXPECT_EQ("func world test", strCat("func", " world"sv, " test"s));
+ EXPECT_EQ("func world test ff",
+ strCat("func", " world"sv, " test"s, " ff"_zsv));
}
TEST(StrCat, MoveStr)