add empty format string into CompileTest::CompileFormatStringLiteral
This commit is contained in:
parent
8c8b1cc74f
commit
855e4887b3
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user