diff --git a/test/format-test.cc b/test/format-test.cc index 8e87911b..1ac7daa3 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1536,3 +1536,12 @@ TEST(FormatTest, FormatMessageExample) { EXPECT_EQ("[42] something happened", format_message(42, "{} happened", "something")); } + +TEST(FormatTest, ArgConverter) { + using fmt::internal::Arg; + Arg arg = Arg(); + arg.type = Arg::LONG_LONG; + arg.long_long_value = std::numeric_limits::max(); + ArgConverter(arg, 'd').visit(arg); + EXPECT_EQ(Arg::LONG_LONG, arg.type); +}