From 484bf07379f9b65f7b867254bdcc993642b7027f Mon Sep 17 00:00:00 2001 From: Charles Milette Date: Mon, 15 Nov 2021 18:34:40 -0500 Subject: [PATCH] Fix test_fmt_helper --- tests/test_fmt_helper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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