未验证 提交 8b9bd165 编写于 作者: C chentianyu03 提交者: GitHub

fix format_string_append test cast,test=develop (#34753)

上级 b64312fc
...@@ -33,10 +33,10 @@ TEST(StringHelper, EndsWith) { ...@@ -33,10 +33,10 @@ TEST(StringHelper, EndsWith) {
TEST(StringHelper, FormatStringAppend) { TEST(StringHelper, FormatStringAppend) {
std::string str("hello"); std::string str("hello");
char fmt[] = "hhh"; char fmt[] = "%d";
paddle::string::format_string_append(str, fmt); paddle::string::format_string_append(str, fmt, 10);
EXPECT_EQ(str, "hellohhh"); EXPECT_EQ(str, "hello10");
} }
TEST(StringHelper, JoinStrings) { TEST(StringHelper, JoinStrings) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册