Use a heuristic to detect empty strftime result (#367)

This commit is contained in:
Victor Zverovich committed 2016-08-05 07:27:56 -07:00
1 parent 1a23f9c274
commit a5d0adf395
2 files changed
+11

No files matched your search

+4
View File
@@ -27,3 +27,7 @@ TEST(TimeTest, GrowBuffer) {
std::time_t t = std::time(0);
fmt::format(s, *std::localtime(&t));
}
TEST(TimeTest, EmptyResult) {
EXPECT_EQ("", fmt::format("{}", std::tm()));
}