From 95a0e127b3f9528d25e0aefefc238d082a57bdc3 Mon Sep 17 00:00:00 2001 From: Pat Tullmann Date: Sat, 6 Jan 2024 13:22:14 -0800 Subject: [PATCH] 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. --- lib/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 index 4a8cc19517c55cf1a03844245464157fb99c7a90..abdfee284fab331abf8e8b1078bd4bcd1e482c9e 100644 --- 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(.{}); -- 2.54.0