File: package-error.lsp

package info (click to toggle)
cl-ansi-tests 20071218-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,000 kB
  • ctags: 22,025
  • sloc: lisp: 134,798; makefile: 144
file content (31 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;-*- 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")
	  'package-error))
  nil)

(deftest package-error.2
  (not
   (typep (make-condition 'package-error
			  :package (find-package "CL"))
	  'package-error))
  nil)

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

(deftest package-error.4
   (not
    (typep (make-condition 'package-error
			   :package (find-package '#:|CL|))
	   'package-error))
  nil)