get-defined-fun: handle :declared-verify.
[sbcl.git] / tests / loop-2.pure.lisp
blobb95c670b8bd55fa8b324b4781d3cd326ac491866
1 ;;;; miscellaneous tests of LOOP-related stuff
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
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
8 ;;;; from CMU CL.
9 ;;;;
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.
16 ;;;
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)
24 collect sym-name)
25 #'string<)))
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<)))))
31 ;;; success