1 ;;;; miscellaneous tests of LOOP-related stuff
3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; While most of SBCL is derived from the CMU CL system, the test
7 ;;;; files (like this one) were written from scratch after the fork
10 ;;;; This software is in the public domain and is provided with
11 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
12 ;;;; more information.
14 ;;; Bug 49b, reported by Peter Van Eynde 2000-07-25, was fixed by
15 ;;; Alexey Dejneka's patch on sbcl-devel 2001-09-30.
17 (let ((package (make-package "loop-test-scratch")))
18 (intern "blah" package
)
19 (let ((blah2 (intern "blah2" package
)))
20 (export blah2 package
))
21 (assert (equal '("blah" "blah2")
22 (sort (loop for sym being each present-symbol of package
23 for sym-name
= (symbol-name sym
)
26 (assert (equal '("blah2")
27 (sort (loop for sym being each external-symbol of package for
28 sym-name
= (symbol-name sym
) collect sym-name
)
29 (function string
<)))))