From a9529fa5712298e9005b77b471400529a2ebbc32 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 03:35:02 -0300 Subject: hxdiff: a case may name its file pane ("path", whose extension picks the grammar), and test/hxcases/indent.jsonl pins the new line's indent in a Zig, a Python, a Rust and a plain-text file against the reference helix with its grammars, typed into a real hx in a pty by hx_indent.py since the harness runs without any; zig build hxdiff runs it before the suite Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- build.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 1b9d9651..27728239 100644 --- a/build.zig +++ b/build.zig @@ -1346,6 +1346,14 @@ pub fn build(b: *std.Build) void { // runs each case in a file pane and a pty pane and compares the two. run_hxdiff.addPassthruArgs(); run_hxdiff.setCwd(b.path(".")); + // the new line's indent per file type, against the reference helix + // with its grammars (test/hxcases/hx_indent.py): before the suite, + // whose count stays the last line + const run_hxindent = b.addRunArtifact(hxdiff); + run_hxindent.has_side_effects = true; + run_hxindent.addArgs(&.{ "--strict", "test/hxcases/indent.jsonl", "test/hxcases/indent-goldens.jsonl" }); + run_hxindent.setCwd(b.path(".")); + run_hxdiff.step.dependOn(&run_hxindent.step); 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); -- cgit v1.3