added test for mzlib/etc.ss bugfix

svn: r4815
This commit is contained in:
Robby Findler 2006-11-09 22:42:46 +00:00
parent 83e09ada4c
commit d64ec0948f

View File

@ -102,6 +102,10 @@
(test 3 (rec (f x) x) 3)
(test 2 (rec (f x) (if (= x 3) (f 2) x)) 3)
(test 2 (rec (f x . y) (car y)) 1 2 3)
(test 2 'no-duplications (let ([x 1]) (rec ignored (begin (set! x (+ x 1)) void)) x))
(test 'f object-name (rec (f x) x))
(test 'f object-name (rec (f x . y) x))
(test 'f object-name (rec f (lambda (x) x)))
(test (list 2) (rec (f . x) (if (= (car x) 3) (f 2) x)) 3)
(report-errs)