diff --git a/test/compile-test.cc b/test/compile-test.cc index e0a9bc9b..190435f2 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -90,9 +90,6 @@ TEST(compile_test, format_escape) { EXPECT_EQ("\"abc\" ", fmt::format(FMT_COMPILE("{0:<7?}"), "abc")); } -TEST(compile_test, format_wide_string) { - EXPECT_EQ(L"42", fmt::format(FMT_COMPILE(L"{}"), 42)); -} TEST(compile_test, format_specs) { EXPECT_EQ("42", fmt::format(FMT_COMPILE("{:x}"), 0x42)); @@ -124,7 +121,6 @@ TEST(compile_test, manual_ordering) { "true 42 42 foo 0x1234 foo", fmt::format(FMT_COMPILE("{0} {1} {2} {3} {4} {5}"), true, 42, 42.0f, "foo", reinterpret_cast(0x1234), test_formattable())); - EXPECT_EQ(L"42", fmt::format(FMT_COMPILE(L"{0}"), 42)); } TEST(compile_test, named) { @@ -133,10 +129,6 @@ TEST(compile_test, named) { static_assert(std::is_same_v>); - EXPECT_EQ("42", fmt::format(FMT_COMPILE("{}"), fmt::arg("arg", 42))); - EXPECT_EQ("41 43", fmt::format(FMT_COMPILE("{} {}"), fmt::arg("arg", 41), - fmt::arg("arg", 43))); - EXPECT_EQ("foobar", fmt::format(FMT_COMPILE("{a0}{a1}"), fmt::arg("a0", "foo"), fmt::arg("a1", "bar"))); @@ -318,7 +310,6 @@ TEST(compile_test, compile_format_string_literal) { using namespace fmt::literals; EXPECT_EQ("", fmt::format(""_cf)); EXPECT_EQ("42", fmt::format("{}"_cf, 42)); - EXPECT_EQ(L"42", fmt::format(L"{}"_cf, 42)); } #endif diff --git a/test/ostream-test.cc b/test/ostream-test.cc index cc28885a..fc38c4c6 100644 --- a/test/ostream-test.cc +++ b/test/ostream-test.cc @@ -265,7 +265,7 @@ template <> struct formatter : ostream_formatter {}; } // namespace fmt void format_abstract_compiles(const abstract& a) { - fmt::format(FMT_COMPILE("{}"), a); + (void)fmt::format(FMT_COMPILE("{}"), a); } TEST(ostream_test, is_formattable) {