From 730fd4d9a7a9f5973a47c5c540becc71b62b8387 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 8 Jun 2025 08:46:22 -0700 Subject: [PATCH] Remove redundant tests --- test/compile-test.cc | 43 ++++--------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index b1c9052f..95960e27 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -425,45 +425,10 @@ TEST(compile_time_formatting_test, multibyte_fill) { #if FMT_USE_CONSTEXPR_STRING TEST(compile_test, constexpr_format) { - { - constexpr auto result = []() { - return fmt::format(FMT_COMPILE("{}"), 1) == "1"; - }(); - EXPECT_TRUE(result); - } - - { - constexpr auto result = []() { - return fmt::format(FMT_COMPILE("{:#b}"), 42) == "0b101010"; - }(); - EXPECT_TRUE(result); - } - - { - constexpr auto result = []() { - return "**-42" == fmt::format(FMT_COMPILE("{:*>5}"), -42); - }(); - EXPECT_TRUE(result); - } - - { - constexpr auto result = []() { - return "10 " == fmt::format(FMT_COMPILE("{: ^3}"), 10); - }(); - EXPECT_TRUE(result); - } - - { - constexpr auto result = []() { - return "42 is 42" == fmt::format(FMT_COMPILE("{} is {}"), 42, 42); - }(); - EXPECT_TRUE(result); - } - - constexpr auto result = []() { - return "This is a very huge int: 1234567890" == fmt::format(FMT_COMPILE("This is a very huge int: {}"), 1234567890); - }(); - EXPECT_TRUE(result); + constexpr auto result = []() { + return fmt::format(FMT_COMPILE("{}"), 42) == "42"; + }(); + EXPECT_TRUE(result); } #endif // FMT_USE_CONSTEXPR_STRING