typep: add regression test for fundamental-streams and typep

This commit is contained in:
Daniel Kochmanski 2017-09-29 16:25:26 +02:00
parent c41407fbea
commit 95c2f0f8e9

View file

@ -1269,3 +1269,13 @@
'(defun flesh-failures ()
(load-time-value
(coerce #(0) '(simple-array (unsigned-byte 8) (1)))))))))
;;; Date 2017-09-29
;;;
;;; Description
;;;
;;; `typep' compiler macroexpansion did treat
;;; `gray:fundamental-stream' as subtype of `ext:ansi-stream'.
(test cmp.0059.gray-is-not-ansi
(let ((stream (make-instance 'gray:fundamental-stream)))
(is-false (typep stream 'ext:ansi-stream))))