Update of /cvsroot/sbcl/sbcl/tests
In directory usw-pr-cvs1:/tmp/cvs-serv25047/tests
Modified Files:
loop.pure.lisp
Log Message:
0.7.9.51:
Fix some LOOP bugs reported by Paul Dietz cmucl-imp
... NIL is an ignored variable name
Minor frobs
... loop.lisp now compiles without style-warnings
... signal a package error in duplicate package logic
Index: loop.pure.lisp
===================================================================
RCS file: /cvsroot/sbcl/sbcl/tests/loop.pure.lisp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- loop.pure.lisp 7 Nov 2002 12:53:38 -0000 1.6
+++ loop.pure.lisp 15 Nov 2002 15:21:58 -0000 1.7
@@ -67,3 +67,16 @@
;;; similar to gcl/ansi-test LOOP.1.27, and fixed at the same time:
(assert (equal (loop for x downto 7 by 2 from 13 collect x) '(13 11 9 7)))
+
+;;; some more from gcl/ansi-test:
+(let ((table (make-hash-table)))
+ (setf (gethash 'foo table) '(bar baz))
+ (assert (= (loop for nil being the hash-keys of table count t) 1))
+ (assert (equal (loop for nil being the hash-keys of table
+ using (hash-value (v1 . v2))
+ when v1
+ return v2)
+ '(baz))))
+
+(assert (= (loop for nil being the external-symbols of :cl count t) 978))
+(assert (= (loop for x being the external-symbols of :cl count x) 977))
|