Make compile-time checks work with fallback formatter (#1088)

This commit is contained in:
Victor Zverovich
2019-03-21 19:02:19 -07:00
parent 7ad3015f5b
commit da0ea4161a
3 changed files with 16 additions and 7 deletions

View File

@@ -173,6 +173,7 @@ TEST(OStreamTest, Join) {
#if FMT_USE_CONSTEXPR
TEST(OStreamTest, ConstexprString) {
EXPECT_EQ("42", format(fmt("{}"), std::string("42")));
EXPECT_EQ("a string", format(fmt("{0}"), TestString("a string")));
}
#endif