From 7437a05c87c5313467a24d24468ea807a1413830 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 8 Nov 2026 23:17:01 -0300 Subject: tests: hxparity is hxdiff's --parity mode, one driver: the hxparity step goes, `zig build hxdiff -- --parity` runs the pty run against the file run as the step did (738 cases, 0 mismatches, 12 waived, its report still named hxparity), and the docs that named the step say so Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- build.zig | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 35f4c55b..1491ed35 100644 --- a/build.zig +++ b/build.zig @@ -1310,10 +1310,11 @@ pub fn build(b: *std.Build) void { hxdiff.root_module.addImport("pardes", core_module); const run_hxdiff = b.addRunArtifact(hxdiff); run_hxdiff.has_side_effects = true; - // Bare, it runs the checked-in suite (test/hxdiff.zig). + // Bare, it runs the checked-in suite (test/hxdiff.zig); `-- --parity` + // runs each case in a file pane and a pty pane and compares the two. run_hxdiff.addPassthruArgs(); run_hxdiff.setCwd(b.path(".")); - const hxdiff_step = b.step("hxdiff", "compare Helix results (-- --strict cases reference [waivers]; cases alone emits)"); + const hxdiff_step = b.step("hxdiff", "compare Helix results (-- --strict cases reference [waivers]; cases alone emits; --parity: a pty pane against a file pane)"); hxdiff_step.dependOn(&run_hxdiff.step); const helix_harness = b.option([]const u8, "helix-harness", "path to the reference hx-harness executable") orelse @@ -1334,14 +1335,6 @@ pub fn build(b: *std.Build) void { update_reference.step.dependOn(&live_diff.step); b.step("hxdiff-update", "replace checked-in Helix goldens after the live comparison passes").dependOn(&update_reference.step); - const run_hxparity = b.addRunArtifact(hxdiff); - run_hxparity.has_side_effects = true; - run_hxparity.addArg("--parity"); - run_hxparity.addPassthruArgs(); - run_hxparity.setCwd(b.path(".")); - const hxparity_step = b.step("hxparity", "run the file-vs-pty editing parity suite (-- [--waivers w.jsonl] ...)"); - hxparity_step.dependOn(&run_hxparity.step); - // every helix-golf example, one case per step of its walkthrough const run_hxgolf = b.addRunArtifact(hxdiff); run_hxgolf.has_side_effects = true; -- cgit v1.3