mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 10:03:21 +00:00
std.fmt escape functions: reflect printability of space in test
This commit is contained in:
parent
37b1707370
commit
a01993e908
@ -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")});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user