Reject-bad-programs snapshot test suite #61

Merged
jacksonopp merged 1 commit from us7/reject-bad-programs-snapshot into main 2026-09-14 22:05:58 +00:00
Owner

Adds insta snapshot tests for the checker's diagnostics, mirroring the parser's snapshot-test discipline: one representative program per DiagnosticKind (minus Syntax, which is parser-owned), plus one accepted program covering structs and functions together.

Also fixes NotCallable's new Option payload so the diagnostic no longer silently drops when the call's callee isn't a plain identifier (e.g. x.f(), f()()).

Closes #7

Adds insta snapshot tests for the checker's diagnostics, mirroring the parser's snapshot-test discipline: one representative program per DiagnosticKind (minus Syntax, which is parser-owned), plus one accepted program covering structs and functions together. Also fixes NotCallable's new Option<Symbol> payload so the diagnostic no longer silently drops when the call's callee isn't a plain identifier (e.g. x.f(), f()()). Closes #7
add checker diagnostic snapshot tests
All checks were successful
CI / check (pull_request) Successful in 3m19s
38474a115d
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jacksonopp/twill!61
No description provided.