add empty format string into CompileTest::CompileFormatStringLiteral

This commit is contained in:
Alexey Ochapov 2020-12-02 21:15:48 +03:00
parent 8c8b1cc74f
commit 855e4887b3
No known key found for this signature in database
GPG Key ID: 9DC52E8F031B8DA8

View File

@ -182,6 +182,7 @@ TEST(CompileTest, Empty) {
#ifdef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS #ifdef FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
TEST(CompileTest, CompileFormatStringLiteral) { TEST(CompileTest, CompileFormatStringLiteral) {
using namespace fmt::literals; using namespace fmt::literals;
EXPECT_EQ("", fmt::format(""_cf));
EXPECT_EQ("42", fmt::format("{}"_cf, 42)); EXPECT_EQ("42", fmt::format("{}"_cf, 42));
} }
#endif #endif