Skip to content

Commit 6ce1094

Browse files
committed
tests/PLAN.md: assert on bar/prompt/receipt via grid renderer (current design)
1 parent 53b3aab commit 6ce1094

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎tests/PLAN.md‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,15 @@ Two pieces:
233233

234234
2. **Pty harness** — Nim has no stdlib pty; shell out to `script` on
235235
macOS / Linux: `script -q /dev/null ./3code -m stub.test "say hi"`
236-
captures stdout while presenting a pty. Capture bytes, assert:
237-
- `●` (the bullet) appears
238-
- the canned reply text appears
239-
- a dim token-receipt line (`○` + `↑↻↓` glyphs) appears
240-
- the order is bullet → content → receipt
236+
captures stdout while presenting a pty. Capture bytes, feed
237+
through the same ANSI grid renderer used by `tests/test_footer.nim`,
238+
assert on cell content:
239+
- `●` (the bullet) appears on a content row
240+
- the canned reply text appears below the bullet
241+
- the token bar (cyan + bright, `↑↻↓` glyphs at column 2) is
242+
visible after stream end with the prompt `❯ ` directly below
243+
- on a *second* prompt, the previous turn's bar shows up as a
244+
dim receipt flush against the LLM content (no permanent gap)
241245

242246
### Gotchas
243247

0 commit comments

Comments
 (0)