X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Floop.pure.lisp;h=febf5a79ca24ee8f0c436d4418dc05f6b411610e;hb=0573ba54479d1d65e2c8a14daffd2976e249bf40;hp=8d4146e6226550d3dc03c2e32d6458bd0d2467fb;hpb=4b57a4917b61299ac074fa385e9a0c62a716655b;p=sbcl.git diff --git a/tests/loop.pure.lisp b/tests/loop.pure.lisp index 8d4146e..febf5a7 100644 --- a/tests/loop.pure.lisp +++ b/tests/loop.pure.lisp @@ -203,3 +203,14 @@ `(lambda () (loop for (i j) to 6 collect nil))) (assert failure-p)) + +(assert + (equal + (let ((x 2d0)) + (loop for d of-type double-float from 0d0 to 10d0 by x collect d)) + '(0d0 2d0 4d0 6d0 8d0 10d0))) +(assert + (equal + (let ((x 2d0)) + (loop for d of-type double-float downfrom 10d0 to 0d0 by x collect d)) + '(10d0 8d0 6d0 4d0 2d0 0d0)))