Skip to content

Commit

Permalink
add empty format string into CompileTest::CompileFormatStringLiteral
Browse files Browse the repository at this point in the history
  • Loading branch information
alexezeder committed Dec 2, 2020
1 parent 8c8b1cc commit 855e488
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/compile-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 855e488

Please sign in to comment.