feat add test case

This commit is contained in:
tqcq 2025-01-09 21:45:48 +08:00
parent f8494fb9ba
commit d3eeaffc30

View File

@ -191,6 +191,8 @@ TEST(String, TrimByCustset)
ASSERT_EQ(" ", Trim("abcd abcd", "abcd"));
ASSERT_EQ("abcd abc", Trim("abcd abcd", "d"));
ASSERT_EQ("abcd abcd ", Trim("abcd abcd ", "d"));
ASSERT_EQ(" abcd abcd ", Trim(" abcd abcd ", "ad"));
ASSERT_EQ("bcd abc", Trim(" abcd abcd ", "ad "));
}
TEST(String, Split1)