FMT_COMPILE tests are temporary switched on even if constexpr_if is not available. Let's on error output

This commit is contained in:
Krylov Yaroslav 2020-12-12 02:13:04 +03:00
parent e737672614
commit 6b60df69f6
No known key found for this signature in database
GPG Key ID: 4C127DE932933076

View File

@ -121,7 +121,7 @@ TEST(CompileTest, EmptyFormatString) {
EXPECT_EQ(fmt::format(f), "");
}
#ifdef __cpp_if_constexpr
//#ifdef __cpp_if_constexpr
TEST(CompileTest, FormatDefault) {
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42));
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), 42u));
@ -177,7 +177,7 @@ TEST(CompileTest, TextAndArg) {
TEST(CompileTest, Empty) {
EXPECT_EQ("", fmt::format(FMT_COMPILE("")));
}
#endif
//#endif
#if FMT_USE_NONTYPE_TEMPLATE_PARAMETERS
TEST(CompileTest, CompileFormatStringLiteral) {