package-error.lsp 693 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
;-*- Mode:     Lisp -*-
;;;; Author:   Paul Dietz
;;;; Created:  Sun Feb 22 06:52:21 2004
;;;; Contains: Tests of the condition PACKAGE-ERROR

(in-package :cl-test)

(deftest package-error.1
  (not
   (typep (make-condition 'package-error :package "CL")
sds's avatar
sds committed
11
          'package-error))
12 13 14 15 16
  nil)

(deftest package-error.2
  (not
   (typep (make-condition 'package-error
sds's avatar
sds committed
17 18
                          :package (find-package "CL"))
          'package-error))
19 20 21 22 23 24 25 26 27
  nil)

(deftest package-error.3
  (subtypep* 'package-error 'error)
  t t)

(deftest package-error.4
   (not
    (typep (make-condition 'package-error
sds's avatar
sds committed
28 29
                           :package (find-package '#:|CL|))
           'package-error))
30 31
  nil)