zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2a432d3008fa1e9af645de96b08cbad57709ffb5 (tree)
parent 2ed9a276a701cc55eccf4fcbf68476e797f1818b
Author: Igor Anić <igor.anic@gmail.com>
Date:   Fri,  1 Dec 2023 19:03:32 +0100

tar: prefix test cases with 'tar'

To make it little easier to filter from all stdlib tests.

Diffstat:
Mlib/std/tar.zig | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/std/tar.zig b/lib/std/tar.zig @@ -628,7 +628,7 @@ fn stripComponents(path: []const u8, count: u32) ![]const u8 { return path[i..]; } -test stripComponents { +test "tar stripComponents" { const expectEqualStrings = std.testing.expectEqualStrings; try expectEqualStrings("a/b/c", try stripComponents("a/b/c", 0)); try expectEqualStrings("b/c", try stripComponents("a/b/c", 1)); @@ -667,7 +667,7 @@ fn noNull(str: []const u8) ![]const u8 { return str; } -test "parsePaxAttribute" { +test "tar parsePaxAttribute" { const expectEqual = std.testing.expectEqual; const expectEqualStrings = std.testing.expectEqualStrings; const expectError = std.testing.expectError; @@ -700,7 +700,7 @@ const TestCase = struct { err: ?anyerror = null, // parsing should fail with this error }; -test "tar: Go test cases" { +test "tar run Go test cases" { const test_dir = if (std.os.getenv("GO_TAR_TESTDATA_PATH")) |path| try std.fs.openDirAbsolute(path, .{}) else @@ -1031,4 +1031,3 @@ const Md5Writer = struct { return std.fmt.bytesToHex(s, .lower); } }; -