diff --git a/tests/test_fmt_helper.cpp b/tests/test_fmt_helper.cpp index 6972d2d2..dde5d482 100644 --- a/tests/test_fmt_helper.cpp +++ b/tests/test_fmt_helper.cpp @@ -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