| ... | @@ -2111,7 +2111,6 @@ test "slice" { | ... | @@ -2111,7 +2111,6 @@ test "slice" { |
| 2111 | } | 2111 | } |
| 2112 | | 2112 | |
| 2113 | test "escape non-printable" { | 2113 | test "escape non-printable" { |
| 2114 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; | | |
| 2115 | try expectFmt("abc", "{s}", .{fmtSliceEscapeLower("abc")}); | 2114 | try expectFmt("abc", "{s}", .{fmtSliceEscapeLower("abc")}); |
| 2116 | try expectFmt("ab\\xffc", "{s}", .{fmtSliceEscapeLower("ab\xffc")}); | 2115 | try expectFmt("ab\\xffc", "{s}", .{fmtSliceEscapeLower("ab\xffc")}); |
| 2117 | try expectFmt("ab\\xFFc", "{s}", .{fmtSliceEscapeUpper("ab\xffc")}); | 2116 | try expectFmt("ab\\xFFc", "{s}", .{fmtSliceEscapeUpper("ab\xffc")}); |
| ... | @@ -2148,7 +2147,6 @@ test "cstr" { | ... | @@ -2148,7 +2147,6 @@ test "cstr" { |
| 2148 | } | 2147 | } |
| 2149 | | 2148 | |
| 2150 | test "filesize" { | 2149 | test "filesize" { |
| 2151 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; | | |
| 2152 | try expectFmt("file size: 42B\n", "file size: {}\n", .{fmtIntSizeDec(42)}); | 2150 | try expectFmt("file size: 42B\n", "file size: {}\n", .{fmtIntSizeDec(42)}); |
| 2153 | try expectFmt("file size: 42B\n", "file size: {}\n", .{fmtIntSizeBin(42)}); | 2151 | try expectFmt("file size: 42B\n", "file size: {}\n", .{fmtIntSizeBin(42)}); |
| 2154 | try expectFmt("file size: 63MB\n", "file size: {}\n", .{fmtIntSizeDec(63 * 1000 * 1000)}); | 2152 | try expectFmt("file size: 63MB\n", "file size: {}\n", .{fmtIntSizeDec(63 * 1000 * 1000)}); |
| ... | @@ -2448,7 +2446,6 @@ test "struct.zero-size" { | ... | @@ -2448,7 +2446,6 @@ test "struct.zero-size" { |
| 2448 | } | 2446 | } |
| 2449 | | 2447 | |
| 2450 | test "bytes.hex" { | 2448 | test "bytes.hex" { |
| 2451 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; | | |
| 2452 | const some_bytes = "\xCA\xFE\xBA\xBE"; | 2449 | const some_bytes = "\xCA\xFE\xBA\xBE"; |
| 2453 | try expectFmt("lowercase: cafebabe\n", "lowercase: {x}\n", .{fmtSliceHexLower(some_bytes)}); | 2450 | try expectFmt("lowercase: cafebabe\n", "lowercase: {x}\n", .{fmtSliceHexLower(some_bytes)}); |
| 2454 | try expectFmt("uppercase: CAFEBABE\n", "uppercase: {X}\n", .{fmtSliceHexUpper(some_bytes)}); | 2451 | try expectFmt("uppercase: CAFEBABE\n", "uppercase: {X}\n", .{fmtSliceHexUpper(some_bytes)}); |
| ... | @@ -2480,7 +2477,6 @@ pub fn hexToBytes(out: []u8, input: []const u8) ![]u8 { | ... | @@ -2480,7 +2477,6 @@ pub fn hexToBytes(out: []u8, input: []const u8) ![]u8 { |
| 2480 | } | 2477 | } |
| 2481 | | 2478 | |
| 2482 | test "hexToBytes" { | 2479 | test "hexToBytes" { |
| 2483 | if (builtin.zig_backend != .stage1) return error.SkipZigTest; | | |
| 2484 | var buf: [32]u8 = undefined; | 2480 | var buf: [32]u8 = undefined; |
| 2485 | try expectFmt("90" ** 32, "{s}", .{fmtSliceHexUpper(try hexToBytes(&buf, "90" ** 32))}); | 2481 | try expectFmt("90" ** 32, "{s}", .{fmtSliceHexUpper(try hexToBytes(&buf, "90" ** 32))}); |
| 2486 | try expectFmt("ABCD", "{s}", .{fmtSliceHexUpper(try hexToBytes(&buf, "ABCD"))}); | 2482 | try expectFmt("ABCD", "{s}", .{fmtSliceHexUpper(try hexToBytes(&buf, "ABCD"))}); |