diff --git a/contrib/20.for/t/test.scm b/contrib/20.for/t/test.scm index 0f58ae4e..64873a4b 100644 --- a/contrib/20.for/t/test.scm +++ b/contrib/20.for/t/test.scm @@ -11,3 +11,11 @@ (let ((n (in '(1 2 3))) (c (in '(a b c)))) (yield (list n c))))) + +(test '((2 a) (2 b) (2 c)) + (for + (let ((n (in '(1 2 3))) + (c (in '(a b c)))) + (if (even? n) + (yield (list n c)) + (null)))))