(check < 4 3)
is returning an error message on the screen but the function also returns #<void>
. I was expecting it to return only an exception and not void. Do I understand the following racket doc incorrectly:
"If the condition holds the check evaluates to (void). If the condition doesn’t hold the check raises an instance of exn:test:check with information detailing the failure."
> (display (check < 4 3))
--------------------
FAILURE
name: check
location: (|interactions from an unsaved editor| 75 11 1868 13)
expression: (check < 4 3)
params: (#<procedure:<> 4 3)
. . Check failure
--------------------
#<void>
>
Aucun commentaire:
Enregistrer un commentaire