Skip to content

Commit

Permalink
add test for multiple compilation types
Browse files Browse the repository at this point in the history
  • Loading branch information
dkavolis authored and vitaut committed Sep 24, 2019
1 parent 89b0c71 commit 8f27ce4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/compile-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f27ce4

Please sign in to comment.