Fix a UB in chrono
This commit is contained in:
1 parent
c06bef7273
commit
d9f045fba1
2 files changed
+20
-3
No files matched your search
@@ -557,6 +557,9 @@ TEST(chrono_test, special_durations) {
|
||||
"03:33");
|
||||
EXPECT_EQ(fmt::format("{:%T}", std::chrono::duration<char, std::mega>{2}),
|
||||
"03:33:20");
|
||||
EXPECT_EQ("44.000000000000",
|
||||
fmt::format("{:%S}", std::chrono::duration<float, std::pico>(
|
||||
1.54213895E+26)));
|
||||
}
|
||||
|
||||
TEST(chrono_test, unsigned_duration) {
|
||||
|
||||
Reference in new issue
Block a user