Skip to content

docs(shell-state): correct the note on why assertions live in fixtures - #117

Merged
ss-o merged 1 commit into
mainfrom
code/zunit-25-comment
Sep 3, 2026
Merged

docs(shell-state): correct the note on why assertions live in fixtures#117
ss-o merged 1 commit into
mainfrom
code/zunit-25-comment

Conversation

@ss-o

@ss-o ss-o commented Sep 3, 2026

Copy link
Copy Markdown
Member

The shell-state comment said a $ in the zi_test argument is not reliably deferred to the inner shell. That described a fork-only defect in ZUnit, fixed by z-shell/zunit#25. Upstream, which this repository installs in CI, never had it, so the note was wrong about the build these tests actually run under.

The fixture layout is still correct, for a better reason: a sourced file is parsed only by the shell that sources it, so no ZUnit build can change what these tests measure. The comment now says that.

Comments only. tests/shell-state.zunit still passes 3/3.

Refs z-shell/zunit#25

The comment said a `$' in the zi_test argument is not reliably deferred to the
inner shell. That described a fork-only defect in zunit, fixed by
z-shell/zunit#25; upstream, which this suite runs against in CI, never had it.

The fixture layout is still right, for a better reason: a sourced file is parsed
only by the shell that sources it, so no zunit build can change what these tests
measure. Say that instead.

Comments only. No test behaviour changes.

Refs z-shell/zunit#25
@ss-o
ss-o merged commit 7e8ae1a into main Sep 3, 2026
33 checks passed
@ss-o
ss-o deleted the code/zunit-25-comment branch September 3, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant