mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-25 19:59:57 +01:00
Cleanup unicode checks
This commit is contained in:
@@ -530,7 +530,7 @@ TEST(ranges_test, escape) {
|
||||
EXPECT_EQ(fmt::format("{}", vec{"\x7f"}), "[\"\\x7f\"]");
|
||||
EXPECT_EQ(fmt::format("{}", vec{"n\xcc\x83"}), "[\"n\xcc\x83\"]");
|
||||
|
||||
if (fmt::detail::is_utf8()) {
|
||||
if (fmt::detail::use_utf8()) {
|
||||
EXPECT_EQ(fmt::format("{}", vec{"\xcd\xb8"}), "[\"\\u0378\"]");
|
||||
// Unassigned Unicode code points.
|
||||
EXPECT_EQ(fmt::format("{}", vec{"\xf0\xaa\x9b\x9e"}), "[\"\\U0002a6de\"]");
|
||||
|
||||
Reference in New Issue
Block a user