Handle exotic character types in compilation

This commit is contained in:
Victor Zverovich committed 2020-09-17 07:12:34 -07:00
1 parent f674434a67
commit 1d696dc280
2 files changed
+11 -3

No files matched your search

+4
View File
@@ -149,6 +149,10 @@ TEST(CompileTest, FormatDefault) {
EXPECT_EQ("foo", fmt::format(FMT_COMPILE("{}"), test_formattable()));
}
TEST(CompileTest, FormatWideString) {
EXPECT_EQ(L"42", fmt::format(FMT_COMPILE(L"{}"), 42));
}
TEST(CompileTest, FormatSpecs) {
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{:x}"), 0x42));
}