mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-04 03:40:49 +02:00
Use a heuristic to detect empty strftime result (#367)
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user