Commit c978d881 authored by Victor Zverovich's avatar Victor Zverovich

Test ArgConverter.

parent fb32161f
......@@ -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<fmt::LongLong>::max();
ArgConverter<fmt::LongLong>(arg, 'd').visit(arg);
EXPECT_EQ(Arg::LONG_LONG, arg.type);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment