Check the host session against the cases the Go and Rust fzt share (FZT2-10) #175
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-verification
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-terminal!175
Loading…
Reference in a new issue
No description provided.
Delete branch "FZT2-10-shared-cases"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fzt now exists in Rust too (fzt v0.2.124's
rust/), for tuimail, spotify-player and fisch's coach to build in instead of loading fzt.dll, and the two are held identical by shared cases in fzt'stestdata/host. This PR is the Go side of that: it writes the cases and checks this repository's host session against them.Added
host/suite_test.go.TestSharedCasesreplays every case in the fzt versiongo.modrequires (47 written, 120 random) and fails when a frame differs from the recorded one (a hash of the JSON fztlib writes).FZT_SUITE_RECORD=<fzt checkout>records them again after a change,FZT_SUITE_FUZZ/FZT_SUITE_OUTwrite fresh random cases for the Rust side to replay, andFZT_SUITE_DUMP=<case>prints a case's frames.:palette and host commands, tag mode, checklists, prompts, the/pop-up, scrolling and resizing, empty and broken menus, unknown keys, yaml.v3's spellings and Unicode.CLAUDE.md: a change here to what a frame holds, how keys act, the palette (fzt-frontend) ortui's scrolling changes the Rust fzt too, and how to record.go.mod: fzt v0.2.124 (the first with the cases);gopkg.in/yaml.v3becomes a direct requirement (the random menus are written with it).Left alone: the host session, fztlib and everything else; only tests and docs change.
Checked: the check passes against v0.2.124's cases; the Rust crate passes the same cases in fzt's CI.
Work package: https://openproject.home.romaine.life/wp/FZT2-10
🤖 Generated with Claude Code