From d778bded95b08da16067da4d56eb151279985df8 Mon Sep 17 00:00:00 2001 From: MikePopoloski Date: Fri, 20 Jul 2018 18:23:29 -0400 Subject: [PATCH] Make line in tests fit within 80chars --- test/format-test.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/format-test.cc b/test/format-test.cc index b2517e27..a1556520 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1323,7 +1323,11 @@ TEST(FormatTest, Dynamic) { args.emplace_back(fmt::internal::make_arg("abc1")); args.emplace_back(fmt::internal::make_arg(1.2f)); - std::string result = fmt::vformat("{} and {} and {}", fmt::basic_format_args(args.data(), (unsigned)args.size())); + std::string result = fmt::vformat("{} and {} and {}", + fmt::basic_format_args( + args.data(), + static_cast(args.size()))); + EXPECT_EQ("42 and abc1 and 1.2", result); }