aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2021-03-06 22:36:50 +0100
committerAndrea Corallo2021-03-06 23:17:14 +0100
commitc60f2f458a63a8ae4288652228f24e43fdc7bba7 (patch)
treebdd1f91cbff403ac013e2eeb02dd837d1b3a14a6 /test/src
parent6c73418c95ae5aca7e63d8d5703a90e178350527 (diff)
downloademacs-c60f2f458a63a8ae4288652228f24e43fdc7bba7.tar.gz
emacs-c60f2f458a63a8ae4288652228f24e43fdc7bba7.zip
Fix `comp-cstr-intersection-no-hashcons' for negated result cstr
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-intersection-no-hashcons): When negated and necessary relax dst to t. * test/src/comp-tests.el (comp-tests-type-spec-tests): Add a test.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-tests.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index cd1c2e0735e..f60e4ab0497 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -1340,7 +1340,14 @@ Return a list of results."
1340 (unless (eql x -0.0) 1340 (unless (eql x -0.0)
1341 (error "")) 1341 (error ""))
1342 x) 1342 x)
1343 float))) 1343 float)
1344
1345 ;; 73
1346 ((defun comp-tests-ret-type-spec-f (x)
1347 (when (eql x 1.0)
1348 (error ""))
1349 x)
1350 t)))
1344 1351
1345 (defun comp-tests-define-type-spec-test (number x) 1352 (defun comp-tests-define-type-spec-test (number x)
1346 `(comp-deftest ,(intern (format "ret-type-spec-%d" number)) () 1353 `(comp-deftest ,(intern (format "ret-type-spec-%d" number)) ()