Fix test_fmt_helper

This commit is contained in:
Charles Milette 2021-11-15 18:34:40 -05:00
parent 0ded003703
commit 484bf07379
No known key found for this signature in database
GPG Key ID: 1A5AE81377AD973A

View File

@ -10,7 +10,7 @@ void test_pad2(int n, const char *expected)
spdlog::details::fmt_helper::pad2(n, buf);
#ifdef SPDLOG_USE_STD_FORMAT
REQUIRE(formatted == expected);
REQUIRE(buf == expected);
#else
REQUIRE(fmt::to_string(buf) == expected);
#endif
@ -22,7 +22,7 @@ void test_pad3(uint32_t n, const char *expected)
spdlog::details::fmt_helper::pad3(n, buf);
#ifdef SPDLOG_USE_STD_FORMAT
REQUIRE(formatted == expected);
REQUIRE(buf == expected);
#else
REQUIRE(fmt::to_string(buf) == expected);
#endif
@ -34,7 +34,7 @@ void test_pad6(std::size_t n, const char *expected)
spdlog::details::fmt_helper::pad6(n, buf);
#ifdef SPDLOG_USE_STD_FORMAT
REQUIRE(formatted == expected);
REQUIRE(buf == expected);
#else
REQUIRE(fmt::to_string(buf) == expected);
#endif
@ -46,7 +46,7 @@ void test_pad9(std::size_t n, const char *expected)
spdlog::details::fmt_helper::pad9(n, buf);
#ifdef SPDLOG_USE_STD_FORMAT
REQUIRE(formatted == expected);
REQUIRE(buf == expected);
#else
REQUIRE(fmt::to_string(buf) == expected);
#endif