diff options
author | crupest <crupest@outlook.com> | 2022-01-08 19:24:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-08 19:24:44 +0800 |
commit | 0c7153db084060034092c1dc24222cae384722ec (patch) | |
tree | 9de1bc4636732e3cc1e1fb7309fdf2ff60683f69 /test/common/StringTest.cpp | |
parent | c38f1f7c273e85c0a6d197cb27424c9ca69e234d (diff) | |
download | cru-0c7153db084060034092c1dc24222cae384722ec.tar.gz cru-0c7153db084060034092c1dc24222cae384722ec.tar.bz2 cru-0c7153db084060034092c1dc24222cae384722ec.zip |
...
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; |