From 59b6ac1bae9cb6720252e1c3e1cc9d4f3a8ab3b1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 24 Nov 2026 01:02:27 -0300 Subject: tests: two process cases read the view in rows (P62 round 3): the gate's process-test on the tip failed two cases the base passes, both the behaviour this line changes: "tty boot: builtins" waited after `/^ +Look ` Enter for Look's row AND Exec's row on the screen; the jump puts Look's row `scroll_off` ROWS above the body's bottom (round 2's ruling: the margin counts rows) and Look's documentation wraps, so Exec's row is under the body (the base's margin of three LINES showed it): the case now waits for Look's row and the first words of its documentation (its point unchanged: the search lands on Look, `n` executes nothing); its `tutor-from-index` snapshot and "tty boot: leader"'s `tutor` snapshot have the new pane one row lower, below the +Help pane's last text row (a wrapped line there counted two rows by item 3's `blankRows`; the base laid the new pane over that row): test/snapshots/builtins.golden and leader.golden updated a case at a time (`-- --update builtins`, `-- --update leader`) and read: their rows' texts the same but the shift, the Help pane's line 15 shown again in leader's, the Tutor's last row gone in each; process-test 0 of 146 failed (2 skipped), Debug Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/snapshots/builtins.golden | 71 ++++++++++++++++++++------------------- test/snapshots/leader.golden | 75 +++++++++++++++++++++--------------------- 2 files changed, 72 insertions(+), 74 deletions(-) (limited to 'test/snapshots') diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 6d5739ef..e9786c8a 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -55,40 +55,39 @@ |28: |29: |30: -== snap tutor-from-index grid=120x67 cursor=7,36 +== snap tutor-from-index grid=120x67 cursor=7,37 |10: 1 pardes builtins under SPC h Tutor -|25: +Search 1/1 Save Undock Del -|26: /^ +Look -|27: @p2:220:1 Look enter, right-click -|35: /tmp/pardes-snap/builtins/cwd/+Tutor Save Term Collapse Follow Del -|36: 1 -|37: 2 PARDES TUTOR -|38: 3 -|39: 4 This pane is +Tutor, a copy: edit it freely; there is no need to -|40: 5 Save it (a bare Save asks for a path to write a copy to). -|41: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses -|42: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a -|43: 8 fresh copy. -|44: 9 -|45: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. -|46: 11 Each lesson is a few things to do, then names its guide section. -|47: 12 Words in backticks, like `Save`, are builtins. -|48: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a -|49: 14 shell line; `Look` (B3) opens what the text names, or else finds -|50: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with -|51: 16 "| " are tags. -|52: 17 -|53: 18 Press j until you reach part 1. -|54: 19 -|55: 20 -|56: 21 ================================================================= -|57: 22 = PART 1 — MODES = -|58: 23 ================================================================= -|59: 24 -|60: 25 1. The box left of this pane's tag is blank, so you are in -|61: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then -|62: 27 Esc: blank again. -|63: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the -|64: 29 pane you were in before (not what helix does). Come back with -|65: 30 Esc again. -|66: 31 3. Press Alt-n: a terminal opens, in NORMAL mode, and pardes types +|26: +Search 1/1 Save Undock Del +|27: /^ +Look +|28: @p2:220:1 Look enter, right-click +|36: /tmp/pardes-snap/builtins/cwd/+Tutor Save Term Collapse Follow Del +|37: 1 +|38: 2 PARDES TUTOR +|39: 3 +|40: 4 This pane is +Tutor, a copy: edit it freely; there is no need to +|41: 5 Save it (a bare Save asks for a path to write a copy to). +|42: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +|43: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +|44: 8 fresh copy. +|45: 9 +|46: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. +|47: 11 Each lesson is a few things to do, then names its guide section. +|48: 12 Words in backticks, like `Save`, are builtins. +|49: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a +|50: 14 shell line; `Look` (B3) opens what the text names, or else finds +|51: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with +|52: 16 "| " are tags. +|53: 17 +|54: 18 Press j until you reach part 1. +|55: 19 +|56: 20 +|57: 21 ================================================================= +|58: 22 = PART 1 — MODES = +|59: 23 ================================================================= +|60: 24 +|61: 25 1. The box left of this pane's tag is blank, so you are in +|62: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then +|63: 27 Esc: blank again. +|64: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the +|65: 29 pane you were in before (not what helix does). Come back with +|66: 30 Esc again. diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 1bd0bb41..9f523992 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -27,28 +27,27 @@ |20: 14 Open the tutor, a document to work through. |21: 15 |22: ~ -== snap tutor grid=100x41 cursor=7,22 +== snap tutor grid=100x41 cursor=7,23 |6: 1 pardes builtins under SPC h Tutor -|21: /tmp/pardes-snap/leader/cwd/+Tutor Save Term Collapse Follow Del -|22: 1 -|23: 2 PARDES TUTOR -|24: 3 -|25: 4 This pane is +Tutor, a copy: edit it freely; there is no need to -|26: 5 Save it (a bare Save asks for a path to write a copy to). -|27: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses -|28: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a -|29: 8 fresh copy. -|30: 9 -|31: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. -|32: 11 Each lesson is a few things to do, then names its guide section. -|33: 12 Words in backticks, like `Save`, are builtins. -|34: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a -|35: 14 shell line; `Look` (B3) opens what the text names, or else finds -|36: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with -|37: 16 "| " are tags. -|38: 17 -|39: 18 Press j until you reach part 1. -|40: 19 +|22: /tmp/pardes-snap/leader/cwd/+Tutor Save Term Collapse Follow Del +|23: 1 +|24: 2 PARDES TUTOR +|25: 3 +|26: 4 This pane is +Tutor, a copy: edit it freely; there is no need to +|27: 5 Save it (a bare Save asks for a path to write a copy to). +|28: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +|29: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +|30: 8 fresh copy. +|31: 9 +|32: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. +|33: 11 Each lesson is a few things to do, then names its guide section. +|34: 12 Words in backticks, like `Save`, are builtins. +|35: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a +|36: 14 shell line; `Look` (B3) opens what the text names, or else finds +|37: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with +|38: 16 "| " are tags. +|39: 17 +|40: 18 Press j until you reach part 1. == snap deleted grid=100x41 cursor=7,3 |5: |6: @@ -69,23 +68,23 @@ |21: |22: |23: -|24: -|25: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del -|26: 1 pardes builtins under SPC h -|27: 2 -|28: 3 SPC h b Build -|29: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. -|30: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩ -|31: its platform, its grammars, and whether the addons are compiled in. -|32: 6 -|33: 7 SPC h c Changelog topbar -|34: 8 Show this build's version and what changed to reach it, in a +Changelog. -|35: 9 -|36: 10 SPC h m Messages -|37: 11 Show the messages said so far in a +Messages. -|38: 12 -|39: 13 SPC h t Tutor topbar -|40: 14 Open the tutor, a document to work through. +|24: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del +|25: 1 pardes builtins under SPC h +|26: 2 +|27: 3 SPC h b Build +|28: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. +|29: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩ +|30: its platform, its grammars, and whether the addons are compiled in. +|31: 6 +|32: 7 SPC h c Changelog topbar +|33: 8 Show this build's version and what changed to reach it, in a +Changelog. +|34: 9 +|35: 10 SPC h m Messages +|36: 11 Show the messages said so far in a +Messages. +|37: 12 +|38: 13 SPC h t Tutor topbar +|39: 14 Open the tutor, a document to work through. +|40: 15 == snap help-column grid=100x41 cursor=7,6 |5: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del |6: 1 pardes builtins under SPC c -- cgit v1.3