You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think any (run-tests (test-suite body ...)) expression should have the same output for each check failure / error as the equivalent (test-case body ...) expression. This issue can be fixed by making a (current-test-names) parameter that returns a list of names of all wrapping tests, using #f for unnamed tests. This parameter can be captured by check failure exceptions. Then the logic for printing the test name can be moved out of run-tests and into rackunit/private/format, simplifying the folding that run-tests performs.
The text was updated successfully, but these errors were encountered:
Given this program:
The output is:
However, if the outer test case is changed to a test suite and run with
run-tests
the output is:I think any
(run-tests (test-suite body ...))
expression should have the same output for each check failure / error as the equivalent(test-case body ...)
expression. This issue can be fixed by making a(current-test-names)
parameter that returns a list of names of all wrapping tests, using#f
for unnamed tests. This parameter can be captured by check failure exceptions. Then the logic for printing the test name can be moved out ofrun-tests
and intorackunit/private/format
, simplifying the folding thatrun-tests
performs.The text was updated successfully, but these errors were encountered: