FMT_COMPILE tests are temporary switched on even if constexpr_if is not available. Let's on error output
This commit is contained in:
parent
e737672614
commit
6b60df69f6
@ -121,7 +121,7 @@ TEST(CompileTest, EmptyFormatString) {
|
|||||||
EXPECT_EQ(fmt::format(f), "");
|
EXPECT_EQ(fmt::format(f), "");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cpp_if_constexpr
|
//#ifdef __cpp_if_constexpr
|
||||||
TEST(CompileTest, FormatDefault) {
|
TEST(CompileTest, FormatDefault) {
|
||||||
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42));
|
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42));
|
||||||
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42u));
|
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42u));
|
||||||
@ -177,7 +177,7 @@ TEST(CompileTest, TextAndArg) {
|
|||||||
TEST(CompileTest, Empty) {
|
TEST(CompileTest, Empty) {
|
||||||
EXPECT_EQ("", fmt::format(FMT_COMPILE("")));
|
EXPECT_EQ("", fmt::format(FMT_COMPILE("")));
|
||||||
}
|
}
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
|
||||||
TEST(CompileTest, CompileFormatStringLiteral) {
|
TEST(CompileTest, CompileFormatStringLiteral) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user