From 855e4887b3fdfbf6d8adbb0865a2942508d0410f Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Wed, 2 Dec 2020 21:15:48 +0300 Subject: [PATCH] add empty format string into CompileTest::CompileFormatStringLiteral --- test/compile-test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/compile-test.cc b/test/compile-test.cc index 30bb7fc7..1e6292b7 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -182,6 +182,7 @@ TEST(CompileTest, Empty) { #ifdef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS TEST(CompileTest, CompileFormatStringLiteral) { using namespace fmt::literals; + EXPECT_EQ("", fmt::format(""_cf)); EXPECT_EQ("42", fmt::format("{}"_cf, 42)); } #endif