Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

tui: compare the installed path with the platform separator in the lookup test

justrachb53cc191f6ef
diff --git a/src/tui_install.zig b/src/tui_install.zig
index 38ce492f..dee4722a 100644
--- a/src/tui_install.zig
+++ b/src/tui_install.zig
@@ -265,6 +265,6 @@ test "findInstalled picks the newest version that has the client" {
try tmp.dir.writeFile(io, .{ .sub_path = "0.2.110/bin/graff-tui", .data = "" });
const base = try tmp.dir.realPathFileAlloc(io, ".", a);
const found = findInstalled(io, a, base).?;
- try std.testing.expect(std.mem.endsWith(u8, found, "0.2.110/bin/graff-tui"));
+ try std.testing.expect(std.mem.endsWith(u8, found, try std.fs.path.join(a, &.{ "0.2.110", "bin", "graff-tui" })));
try std.testing.expect(findInstalled(io, a, "/nonexistent/graff-tui-root") == null);
}