add test for lazy take bug fix -- invariant being incorrectly tested on unforced arg

(cherry picked from commit 08d99f4858)
This commit is contained in:
Stephen Chang 2011-01-30 12:12:55 -05:00 committed by Eli Barzilay
parent 01c641d14f
commit 58f98ed1dc

View File

@ -24,7 +24,9 @@
(! (first (take 4 test-lst1))) => 1
(! (second (take 4 test-lst1))) => 2
(! (third (take 4 test-lst1))) => 3
(! (fourth (take 4 test-lst1))) =error> "take: index 4 too large for input list"))
(! (fourth (take 4 test-lst1))) =error> "take: index 4 too large for input list"
(! (list-ref (take (car (list 1)) (list 2)) 0)) => 2
))
; not working, only get 1 test passed
#;(define (langimpl-tests)