Last active
December 14, 2015 04:48
-
-
Save agumonkey/5030355 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require rackunit) | |
(require rackunit/text-ui) | |
(define q1 | |
(test-suite | |
"question 1 : warm up, project, inverse" | |
(check-equal? 1000 (* 10 10 10) "trivial equality") | |
(check-exn exn:fail? (lambda () (error "DUCK!"))) "test for function that should fail")) | |
(run-tests q1) | |
(define fail | |
(test-suite | |
"error on purpose" | |
(check-equal? 1 0 "oops"))) | |
(run-tests fail) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment