diff --git a/test/compile-test.cc b/test/compile-test.cc index d1adc9f2..13bef488 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -117,6 +117,11 @@ TEST(CompileTest, FormattedSize) { EXPECT_EQ(fmt::formatted_size(f, 42), 10); } +TEST(CompileTest, MultipleTypes) { + auto f = fmt::compile("{} {}"); + EXPECT_EQ(fmt::format(f, 42, 42), "42 42"); +} + struct formattable {}; FMT_BEGIN_NAMESPACE