Skip to content

Exceptions reports in check-X all blame check-expect #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shhyou opened this issue Mar 28, 2025 · 1 comment
Open

Exceptions reports in check-X all blame check-expect #245

shhyou opened this issue Mar 28, 2025 · 1 comment
Labels
test engine topics related to the test engine

Comments

@shhyou
Copy link
Collaborator

shhyou commented Mar 28, 2025

#lang htdp/isl+
(check-within x 2 0.5)

Output:

Ran 1 test.
0 tests passed.

Check failures:
        check-expect encountered the following error instead of the expected value, 2. 
   :: at line 2, column 14 x: this variable is not defined 
at line 2, column 0 caused by expression at line 2, column 14

It says check-expect instead of check-within. I'm not sure whether it's just me or the same for everyone.

As a relevant issue, it would improve the error message of check-error if syntax errors are reported as "syntax errors" rather than just "encountered the following error".

@shhyou shhyou added the test engine topics related to the test engine label Mar 28, 2025
@mfelleisen
Copy link
Contributor

Lline 486 in @mikesperber 's testmarkup uses a string that bakes in check-expect, which is suspect:

                   "check-expect encountered the following error instead of the expected value, "

So the problem may originate from this re-do of rendering problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test engine topics related to the test engine
Projects
None yet
Development

No branches or pull requests

2 participants