fn testDirnamePosix(input: []const u8, expected_output: ?[]const u8) !void input: []const u8expected_output: ?[]const u81404
1405
1406
1407
1408
1409
1410fn testDirnamePosix(input: []const u8, expected_output: ?[]const u8) !void {
if (dirnamePosix(input)) |output| {
try testing.expect(mem.eql(u8, output, expected_output.?));
} else {
try testing.expect(expected_output == null);
}
}