From 0c7153db084060034092c1dc24222cae384722ec Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 8 Jan 2022 19:24:44 +0800 Subject: ... --- test/common/StringTest.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/common/StringTest.cpp') diff --git a/test/common/StringTest.cpp b/test/common/StringTest.cpp index f11f9197..2dc72478 100644 --- a/test/common/StringTest.cpp +++ b/test/common/StringTest.cpp @@ -28,6 +28,11 @@ TEST(String, Format) { ASSERT_EQ(Format(u"{} + {} = {}", 123, 321, 444), String(u"123 + 321 = 444")); } +TEST(String, Trim) { + using cru::String; + ASSERT_EQ(String(u" abc ").Trim(), u"abc"); +} + TEST(String, SplitToLines) { using cru::String; -- cgit v1.2.3