File: type.after-xc.lisp

package info (click to toggle)
sbcl 1%3A1.0.18.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,056 kB
  • ctags: 17,740
  • sloc: lisp: 319,653; ansic: 24,885; asm: 2,467; sh: 2,282; makefile: 318
file content (32 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (6)
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
32
;;;; tests of the type system, intended to be executed in the
;;;; cross-compiler after cross-compilation

;;;; This software is part of the SBCL system. See the README file for
;;;; more information.
;;;;
;;;; While most of SBCL is derived from the CMU CL system, the test
;;;; files (like this one) were written from scratch after the fork
;;;; from CMU CL.
;;;;
;;;; This software is in the public domain and is provided with
;;;; absolutely no warranty. See the COPYING and CREDITS files for
;;;; more information.

(in-package "SB!KERNEL")

(/show "beginning tests/type.after-xc.lisp")

;;; various dead bugs
(assert (eql *empty-type*
             (type-intersection *empty-type*
                                (specifier-type 'keyword))))
(assert (eql *empty-type*
             (type-intersection (specifier-type 'keyword)
                                *empty-type*)))
(assert (member-type-p (specifier-type '(or float-format null))))

(let ((fd-stream (specifier-type 'fd-stream)))
  (assert (type= fd-stream (type-intersection (specifier-type 'instance)
                                              fd-stream))))

(/show "done with tests/type.after-xc.lisp")