added test for.previous.var-with-type-declaration
Wed Jan 29 14:34:35 UTC 2014 attila.lendvai@gmail.com
* added test for.previous.var-with-type-declaration
diff -rN -u old-iterate/iterate-test.lisp new-iterate/iterate-test.lisp
--- old-iterate/iterate-test.lisp 2015-09-01 01:58:29.182972229 +0000
+++ new-iterate/iterate-test.lisp 2015-09-01 01:58:29.190972189 +0000
@@ -885,6 +885,12 @@
(collecting p))
(9 9 0 1))
+(deftest for.previous.var-with-type-declaration
+ (iter (for i from 1 to 5)
+ (for (the fixnum i-prev) previous i)
+ (collect i-prev))
+ (nil 1 2 3 4))
+
(deftest for.first.1
(iter (for num in '(20 19 18 17 16))
(for i first num then (1+ i))