Skip to content

Commit 0f03cbb

Browse files
committed
Add sprintf test
1 parent 91c5602 commit 0f03cbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/string/printf_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ TEST(StringPrintf, StringPrintf) {
2727
EXPECT_EQ(std::string("Wednesday, July 27, 14:44"),
2828
paddle::string::Sprintf("%s, %s %d, %.2d:%.2d", weekday, month, day,
2929
hour, min));
30+
EXPECT_EQ(std::string(""), paddle::string::Sprintf());
3031
}

0 commit comments

Comments
 (0)