fix warnings

This commit is contained in:
lixianjing 2021-09-16 16:12:19 +08:00
parent 79dc535dfe
commit 58b5c4958e

View File

@ -518,8 +518,8 @@ TEST(Utils, strrstr) {
ASSERT_STREQ(tk_strrstr("abc abc123", "abc"), "abc123");
ASSERT_STREQ(tk_strrstr("abc abc123aaabc", "abc"), "abc");
ASSERT_EQ(tk_strrstr("abc" + 1, "abc") == NULL, true);
ASSERT_EQ(tk_strrstr("abc" + 1, "123") == NULL, true);
ASSERT_EQ(tk_strrstr("bc", "abc") == NULL, true);
ASSERT_EQ(tk_strrstr("bc", "123") == NULL, true);
}
TEST(Utils, totitle) {