A library for parsing Tiled maps.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

make changeTestDir more idempotent

+6 -1
+6 -1
test/tests.zig
··· 6 6 } 7 7 8 8 pub fn changeTestDir() !void { 9 - var dir = std.fs.cwd().openDir("test", .{}) catch return; 9 + const file_name = try std.fs.cwd().realpathAlloc(std.testing.allocator, "."); 10 + defer std.testing.allocator.free(file_name); 11 + 12 + if (std.mem.endsWith(u8, file_name, "test")) return; 13 + 14 + var dir = try std.fs.cwd().openDir("test", .{}); 10 15 defer dir.close(); 11 16 12 17 try dir.setAsCwd();