Skip to content

fix(check): a false {==} names its sides as written (#1632) - #2002

Merged
Lorenzobattistela merged 3 commits into
mainfrom
fix-1632-rfl-sides
Nov 2, 2026
Merged

Lorenzobattistela merged 3 commits into
mainfrom
fix-1632-rfl-sides

Conversation

@Lorenzobattistela

@Lorenzobattistela Lorenzobattistela commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Proposal 5 of #1632, in a smaller form than #1735.

A false {==} printed the two sides' values as expected / observed without saying which side was which. check-rfl now adds a fixed Note:

SOME PROOFS FAIL
Error:
- expected : 7
- observed : 8
Location: bad
6 | def bad() -> {add3(4) == 8 : U32}:
7>|   {==}
  |   ^^^^
8 | 
Note: the left side of the equality is the expected, the right side is the observed.
  • bend2/bend.ts: one line in check-rfl, +20 ttok.
  • The format of the error is unchanged: the 21 tests with a false {==} each gain the Note line, nothing else.
  • Not addressed here: a huge side still prints its full normal form (tests/page/deep_list_walk.bend). That comes from err_show normalizing every expected/observed, so it belongs to all errors, not only check-rfl.

Gates on origin/main 01fca262: repo 54/54, test 1816/1816, perf 124/124, ping 81/81.

🤖 Generated with Claude Code

The error printed the two sides' values as expected/observed without
saying which side was which, nor what was written. A Note now names
them: "expected is the left side, add3(4), observed the right, 8."

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lorenzobattistela and others added 2 commits November 2, 2026 11:28
A fixed sentence, as suggested in review: quoting the sides as written
made the note read oddly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Lorenzobattistela
Lorenzobattistela merged commit e73e9f9 into main Nov 2, 2026
1 check passed
@Lorenzobattistela
Lorenzobattistela deleted the fix-1632-rfl-sides branch November 2, 2026 14:32
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