diff options
Diffstat (limited to 'test/common/StringTest.cpp')
-rw-r--r-- | test/common/StringTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |