diff options
Diffstat (limited to 'absl')
-rw-r--r-- | absl/strings/internal/str_format/convert_test.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/absl/strings/internal/str_format/convert_test.cc b/absl/strings/internal/str_format/convert_test.cc index 3a4c27d7..baffe052 100644 --- a/absl/strings/internal/str_format/convert_test.cc +++ b/absl/strings/internal/str_format/convert_test.cc @@ -844,15 +844,13 @@ void TestWithMultipleFormatsHelper(Floating tested_float) { // Apple formats NaN differently (+nan) vs. (nan) if (std::isnan(tested_float)) continue; #endif - if (string_printf_result != str_format_result) { - // We use ASSERT_EQ here because failures are usually correlated and a - // bug would print way too many failed expectations causing the test - // to time out. - ASSERT_EQ(string_printf_result, str_format_result) - << fmt_str << " " << StrPrint("%.18g", tested_float) << " " - << StrPrint("%a", tested_float) << " " - << StrPrint("%.50f", tested_float); - } + // We use ASSERT_EQ here because failures are usually correlated and a + // bug would print way too many failed expectations causing the test + // to time out. + ASSERT_EQ(string_printf_result, str_format_result) + << fmt_str << " " << StrPrint("%.18g", tested_float) << " " + << StrPrint("%a", tested_float) << " " + << StrPrint("%.50f", tested_float); } } } |