Improve %BIT-POSITION
[sbcl.git] / tests / load.pure.lisp
blobeed5f45bf8f9fe1c24dc609385c84d06be5510ac
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 (in-package "CL-USER")
16 ;;; As reported by Gregory Wright sbcl-devel 2002-07-15, SBCL 0.7.5
17 ;;; didn't honor the LOAD :IF-DOES-NOT-EXIST argument when the type of
18 ;;; the LOADed file was specified.
19 (load "i-am-not" :if-does-not-exist nil)
20 (load "i-am-not.lisp" :if-does-not-exist nil)
21 (load "i-am-not.fasl" :if-does-not-exist nil)
22 (load "i-am-not.misc-garbage" :if-does-not-exist nil)
24 ;;; In 1.0.17, LOAD didn't error when the file didn't exist and
25 ;;; IF-DOES-NOT-EXIST was true.
26 (assert (typep (nth-value 1 (ignore-errors (load "i-am-not"))) 'file-error))
27 (assert (typep (nth-value 1 (ignore-errors (load "i-am-not" :if-does-not-exist t))) 'file-error))