fix udl_compiled_string with non-byte chars (e.g. wchar) (#2242)

This commit is contained in:
Alexey Ochapov
2021-04-19 18:29:35 +03:00
committed by GitHub
parent c5d4fcb119
commit 1d4199f46b
2 changed files with 4 additions and 2 deletions

View File

@ -316,6 +316,7 @@ TEST(CompileTest, CompileFormatStringLiteral) {
using namespace fmt::literals;
EXPECT_EQ("", fmt::format(""_cf));
EXPECT_EQ("42", fmt::format("{}"_cf, 42));
EXPECT_EQ(L"42", fmt::format(L"{}"_cf, 42));
}
#endif