From 05c199e2aab45fc2de71c5a4db5aa5a1f5bc2bb2 Mon Sep 17 00:00:00 2001 From: TsFreddie Date: Mon, 7 Sep 2020 00:03:40 +0100 Subject: [PATCH] I can't count --- src/test/str.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/str.cpp b/src/test/str.cpp index 7da9bf0e8..1ebd5dd45 100644 --- a/src/test/str.cpp +++ b/src/test/str.cpp @@ -218,19 +218,19 @@ TEST(Str, StrCopyUtf8) str_utf8_copy(aBuf, foo, 8); EXPECT_STREQ(aBuf, "DDNet"); str_utf8_copy(aBuf, foo, 9); - EXPECT_STREQ(aBuf, "DDNet"); + EXPECT_STREQ(aBuf, "DDNet最"); str_utf8_copy(aBuf, foo, 10); EXPECT_STREQ(aBuf, "DDNet最"); str_utf8_copy(aBuf, foo, 11); EXPECT_STREQ(aBuf, "DDNet最"); str_utf8_copy(aBuf, foo, 12); - EXPECT_STREQ(aBuf, "DDNet最"); + EXPECT_STREQ(aBuf, "DDNet最好"); str_utf8_copy(aBuf, foo, 13); EXPECT_STREQ(aBuf, "DDNet最好"); str_utf8_copy(aBuf, foo, 14); EXPECT_STREQ(aBuf, "DDNet最好"); str_utf8_copy(aBuf, foo, 15); - EXPECT_STREQ(aBuf, "DDNet最好"); + EXPECT_STREQ(aBuf, "DDNet最好了"); str_utf8_copy(aBuf, foo, 16); EXPECT_STREQ(aBuf, "DDNet最好了"); }