std.fmt escape functions: reflect printability of space in test

This commit is contained in:
r00ster91 2022-11-18 23:12:27 +01:00
parent 37b1707370
commit a01993e908

View File

@ -2198,8 +2198,9 @@ test "slice" {
}
test "escape non-printable" {
try expectFmt("abc", "{s}", .{fmtSliceEscapeLower("abc")});
try expectFmt("abc 123", "{s}", .{fmtSliceEscapeLower("abc 123")});
try expectFmt("ab\\xffc", "{s}", .{fmtSliceEscapeLower("ab\xffc")});
try expectFmt("abc 123", "{s}", .{fmtSliceEscapeUpper("abc 123")});
try expectFmt("ab\\xFFc", "{s}", .{fmtSliceEscapeUpper("ab\xffc")});
}