Commit 56e3fa15 authored by Marius Gerbershagen's avatar Marius Gerbershagen
Browse files

Merge branch 'subtypep.cons.44' into 'master'


See merge request !30
parents 5c4504cc bf63b936
......@@ -374,3 +374,20 @@
(and (not sub1) (not sub2))))))
(defun (x) (declare (ignore x)) (= 1 (random 2)))
(defun (x) (declare (ignore x)) (= 1 (random 2)))
(defun subtypep.cons.44.baz (x) (declare (ignore x)) (= 1 (random 2)))
(defun subtypep.cons.44.qux (x) (declare (ignore x)) (= 1 (random 2)))
(deftest subtypep.cons.44
(let* ((t1 `(cons (not float)))
(t2 `(or (cons (satisfies
(cons (satisfies subtypep.cons.44.baz)
(satisfies subtypep.cons.44.qux)))))
(multiple-value-bind (sub1 good1)
(subtypep* t1 t2)
(multiple-value-bind (sub2 good2)
(subtypep* `(not ,t2) `(not ,t1))
(and (not sub1) (not sub2) (not good1) (not good2)))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment