test: forgot to change the other preprocessor check as well

This commit is contained in:
Mateusz Pusz
2021-11-15 17:41:02 +01:00
parent d6bb6c8bc9
commit e19b9e93e9

View File

@@ -1055,7 +1055,7 @@ TEST_CASE("type specification", "[text][fmt]")
CHECK(STD_FMT::format("{:%XQ %q}", 42_q_m) == "2A m");
#ifdef UNITS_COMP_MSVC
#if USE_LIBFMT
#if UNITS_USE_LIBFMT
CHECK(STD_FMT::format("{:%aQ %q}", 1.2345678_q_m) == "0x1.3c0ca2a5b1d5dp+0 m");
CHECK(STD_FMT::format("{:%.3aQ %q}", 1.2345678_q_m) == "0x1.3c1p+0 m");
CHECK(STD_FMT::format("{:%AQ %q}", 1.2345678_q_m) == "0X1.3C0CA2A5B1D5DP+0 m");
@@ -1065,7 +1065,7 @@ TEST_CASE("type specification", "[text][fmt]")
CHECK(STD_FMT::format("{:%.3aQ %q}", 1.2345678_q_m) == "1.3c1p+0 m");
CHECK(STD_FMT::format("{:%AQ %q}", 1.2345678_q_m) == "1.3C0CA2A5B1D5DP+0 m");
CHECK(STD_FMT::format("{:%.3AQ %q}", 1.2345678_q_m) == "1.3C1P+0 m");
#endif // USE_LIBFMT
#endif // UNITS_USE_LIBFMT
#else
CHECK(STD_FMT::format("{:%aQ %q}", 1.2345678_q_m) == "0x9.e065152d8eae841p-3 m");
CHECK(STD_FMT::format("{:%.3aQ %q}", 1.2345678_q_m) == "0x9.e06p-3 m");