Simplify test check

This commit is contained in:
matrackif 2021-12-06 18:06:01 +01:00 committed by GitHub
parent 38fb7a6691
commit 89c8198282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,9 +544,7 @@ TEST(chrono_test, negative_durations) {
TEST(chrono_test, special_durations) {
auto value = fmt::format("{:%S}", std::chrono::duration<double>(1e20));
// No decimal point is printed so size() is 2.
EXPECT_EQ(value.size(), 2);
EXPECT_EQ("40", value.substr(0, 2));
EXPECT_EQ(value, "40");
auto nan = std::numeric_limits<double>::quiet_NaN();
EXPECT_EQ(
"nan nan nan nan nan:nan nan",