apply clang-format

This commit is contained in:
Axel Kohlmeyer
2024-09-25 18:15:49 -04:00
parent e44e462da6
commit e29e943ae6
6 changed files with 37 additions and 39 deletions

View File

@ -126,13 +126,11 @@ TEST(FmtLib, insert_neg_double)
TEST(FmtLib, int_for_double)
{
const double val = -1.5;
std::string text;
ASSERT_THROW( text = fmt::format("word {:d}", val), std::exception);
ASSERT_THROW(auto text = fmt::format("word {:d}", val), std::exception);
}
TEST(FmtLib, double_for_int)
{
const int val = 15;
std::string text;
ASSERT_THROW( text = fmt::format("word {:g}", val), std::exception);
ASSERT_THROW(auto text = fmt::format("word {:g}", val), std::exception);
}