add test case for `null` of (picrin control for)
This commit is contained in:
parent
2b9d877d66
commit
52a58e5231
contrib/20.for/t
|
@ -11,3 +11,11 @@
|
||||||
(let ((n (in '(1 2 3)))
|
(let ((n (in '(1 2 3)))
|
||||||
(c (in '(a b c))))
|
(c (in '(a b c))))
|
||||||
(yield (list n 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)))))
|
||||||
|
|
Loading…
Reference in New Issue