提交 0f03cbbd 编写于 作者: M minqiyang

Add sprintf test

上级 91c5602d
...@@ -27,4 +27,5 @@ TEST(StringPrintf, StringPrintf) { ...@@ -27,4 +27,5 @@ TEST(StringPrintf, StringPrintf) {
EXPECT_EQ(std::string("Wednesday, July 27, 14:44"), EXPECT_EQ(std::string("Wednesday, July 27, 14:44"),
paddle::string::Sprintf("%s, %s %d, %.2d:%.2d", weekday, month, day, paddle::string::Sprintf("%s, %s %d, %.2d:%.2d", weekday, month, day,
hour, min)); hour, min));
EXPECT_EQ(std::string(""), paddle::string::Sprintf());
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册