add test for byte formatting with FMT_COMPILE

This commit is contained in:
Alexey Ochapov 2020-12-22 23:46:23 +03:00
parent 5a37e182de
commit cc4a9951eb
No known key found for this signature in database
GPG Key ID: 9DC52E8F031B8DA8

View File

@ -133,6 +133,9 @@ TEST(CompileTest, FormatDefault) {
EXPECT_EQ("foo", fmt::format(FMT_COMPILE("{}"), "foo"));
EXPECT_EQ("foo", fmt::format(FMT_COMPILE("{}"), std::string("foo")));
EXPECT_EQ("foo", fmt::format(FMT_COMPILE("{}"), test_formattable()));
# ifdef __cpp_lib_byte
EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), std::byte{42}));
# endif
}
TEST(CompileTest, FormatWideString) {