zig

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

commit 95a0e127b3f9528d25e0aefefc238d082a57bdc3 (tree)
parent c4a1b54ebefb77122d2055b09bc0bf01bbc1d8b6
Author: Pat Tullmann <pat.github@tullmann.org>
Date:   Sat,  6 Jan 2024 13:22:14 -0800

std/fs/test.zig: quote . and .. in test names

The test runner uses "." in its output between the test module and the
test name, so quote the leading '.' in these test names to make them
easier to read.

Diffstat:
Mlib/std/fs/test.zig | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/std/fs/test.zig b/lib/std/fs/test.zig @@ -317,14 +317,14 @@ test "openDirAbsolute" { } } -test "openDir cwd parent .." { +test "openDir cwd parent '..'" { if (builtin.os.tag == .wasi) return error.SkipZigTest; var dir = try fs.cwd().openDir("..", .{}); defer dir.close(); } -test "openDir non-cwd parent .." { +test "openDir non-cwd parent '..'" { switch (builtin.os.tag) { .wasi, .netbsd, .openbsd => return error.SkipZigTest, else => {}, @@ -1674,7 +1674,7 @@ test "walker without fully iterating" { try testing.expectEqual(@as(usize, 1), num_walked); } -test ". and .. in fs.Dir functions" { +test "'.' and '..' in fs.Dir functions" { if (builtin.os.tag == .wasi and builtin.link_libc) return error.SkipZigTest; if (builtin.os.tag == .windows and builtin.cpu.arch == .aarch64) { @@ -1714,7 +1714,7 @@ test ". and .. in fs.Dir functions" { }.impl); } -test ". and .. in absolute functions" { +test "'.' and '..' in absolute functions" { if (builtin.os.tag == .wasi) return error.SkipZigTest; var tmp = tmpDir(.{});