Le "check-error" pour les nuls !
Bonjour, je suis nouveau ici, je débute en Scheme et je n'arrive pas bien à comprendre le fonctionnement du check-error...
Voilà ma fonction :
Code:
1 2 3 4 5
| (define (fonction a b)
(cond ( (< a 0) (error 'fonction" a < 0 ?"))
( ......................) ) )
(check-error( fonction -3 8) " a < 0 ?") |
J'exécute le programme et voilà le message qui s'affiche :
Citation:
check-error encountered the following error instead of the expected a < 0 ?
:: fonction: a < 0 ?
Pouvez-vous m'aider s'il-vous-plaît ?
Merci !