exercise-2.scm (370B)
1 (define-library (sicp tests chapter-4 exercise-2) 2 (import (scheme base) 3 4 (srfi :64) 5 6 (sicp solutions chapter-4 exercise-2)) 7 8 (begin 9 (test-begin "chapter-4-exercise-2") 10 11 (test-equal -1 12 (eval '(call + -2 1) 13 (make-environment '(+) 14 `((primitive ,+))))) 15 16 (test-end "chapter-4-exercise-2")))