add test for multiple compilation types

This commit is contained in:
Daumantas Kavolis 2019-09-24 10:54:49 +01:00 committed by Victor Zverovich
parent 89b0c71fa9
commit 8f27ce4d8b

View File

@ -117,6 +117,11 @@ TEST(CompileTest, FormattedSize) {
EXPECT_EQ(fmt::formatted_size(f, 42), 10);
}
TEST(CompileTest, MultipleTypes) {
auto f = fmt::compile<int, int>("{} {}");
EXPECT_EQ(fmt::format(f, 42, 42), "42 42");
}
struct formattable {};
FMT_BEGIN_NAMESPACE