tests: cmp: add regression tests for this branch

This commit is contained in:
Daniel Kochmański 2023-09-22 20:00:42 +02:00
parent ad4002e578
commit 2414e829cc

View file

@ -2344,3 +2344,20 @@
(is (floatp (funcall (cmplambda ()
(let ((x most-positive-single-float))
x))))))
(test cmp.0097.wt-loc-regressions
;; Baseline (this works)
(is (null (nth-value 1 (compile nil '(lambda (x) (not (the integer x)))))))
;; Unreleased regressions (** Unknown location found in WT-LOC: NIL)
(is (null (nth-value 1 (compile nil '(lambda (x) (not (the single-float x)))))))
(is (null (nth-value 1 (compile nil '(lambda (x) (not (the double-float x)))))))
(is (null (nth-value 1 (compile nil '(lambda (x) (not (the long-float x))))))))
(test cmp.0097.cmp-regression
(let ((fun (cmplambda ()
(EXPT
(LABELS ((%F14 () 0))
(%F14))
0))))
(let ((res (FUNCALL fun)))
(is (= 1 res) "Res is ~s, should be 1." res))))