0.pre7.33:
[sbcl.git] / tests / loop.pure.lisp
1 ;;;; miscellaneous tests of LOOP-related stuff
2
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.
13
14 (in-package "CL-USER")
15
16 ;;; The bug reported by Alexei Dejneka on sbcl-devel 2001-09-03
17 ;;; is fixed now.
18 (assert (equal (let ((hash (make-hash-table)))
19                  (setf (gethash 'key1 hash) 'val1)
20                  (setf (gethash 'key2 hash) 'val2)
21                  (sort (loop for key being each hash-key in hash
22                              collect key)
23                        #'string<))
24                '(key1 key2)))