From d6bb6c8bc9f90c7bda2b2083ded504d884894877 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 15 Nov 2021 17:12:44 +0100 Subject: [PATCH] test: fmt test compilation on VS2019 fixed --- test/unit_test/runtime/fmt_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit_test/runtime/fmt_test.cpp b/test/unit_test/runtime/fmt_test.cpp index 831402bd..050808cc 100644 --- a/test/unit_test/runtime/fmt_test.cpp +++ b/test/unit_test/runtime/fmt_test.cpp @@ -1096,7 +1096,7 @@ TEST_CASE("type specification", "[text][fmt]") CHECK(STD_FMT::format("{:%XQ}", 42_q_m) == "2A"); #ifdef UNITS_COMP_MSVC -#if USE_LIBFMT +#if UNITS_USE_LIBFMT CHECK(STD_FMT::format("{:%aQ}", 1.2345678_q_m) == "0x1.3c0ca2a5b1d5dp+0"); CHECK(STD_FMT::format("{:%.3aQ}", 1.2345678_q_m) == "0x1.3c1p+0"); CHECK(STD_FMT::format("{:%AQ}", 1.2345678_q_m) == "0X1.3C0CA2A5B1D5DP+0"); @@ -1106,7 +1106,7 @@ TEST_CASE("type specification", "[text][fmt]") CHECK(STD_FMT::format("{:%.3aQ}", 1.2345678_q_m) == "1.3c1p+0"); CHECK(STD_FMT::format("{:%AQ}", 1.2345678_q_m) == "1.3C0CA2A5B1D5DP+0"); CHECK(STD_FMT::format("{:%.3AQ}", 1.2345678_q_m) == "1.3C1P+0"); -#endif // USE_LIBFMT +#endif // UNITS_USE_LIBFMT #else CHECK(STD_FMT::format("{:%aQ}", 1.2345678_q_m) == "0x9.e065152d8eae841p-3"); CHECK(STD_FMT::format("{:%.3aQ}", 1.2345678_q_m) == "0x9.e06p-3");