diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-12-08 21:24:14 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-12-13 00:58:12 +0100 |
commit | 0ded37fdadc96e7607e2a13e0fd0990e13f3b0b4 (patch) | |
tree | ab84912ac0ef311c39833731133afd797400ee8b /test/lisp/emacs-lisp | |
parent | 62869453961ec677323ed034465833304686a534 (diff) | |
download | emacs-0ded37fdadc96e7607e2a13e0fd0990e13f3b0b4.tar.gz emacs-0ded37fdadc96e7607e2a13e0fd0990e13f3b0b4.tar.bz2 emacs-0ded37fdadc96e7607e2a13e0fd0990e13f3b0b4.zip |
* Add initial negated non-negegated intersection support
* lisp/emacs-lisp/comp-cstr.el (comp-range-intersection): Cosmetic.
(comp-cstr-intersection-homogeneous): Rename from
`comp-cstr-intersection'.
(comp-cstr-intersection): New function.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/comp-cstr-tests.el | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/comp-cstr-tests.el b/test/lisp/emacs-lisp/comp-cstr-tests.el index 392669fba02..bd141e13ad5 100644 --- a/test/lisp/emacs-lisp/comp-cstr-tests.el +++ b/test/lisp/emacs-lisp/comp-cstr-tests.el @@ -155,7 +155,29 @@ ;; 57 ((or atom (not (integer 1 2))) . t) ;; 58 - ((or atom (not (member foo))) . t)) + ((or atom (not (member foo))) . t) + ;; 59 + ((and symbol (not cons)) . symbol) + ;; 60 + ((and symbol (not symbol)) . nil) + ;; 61 + ((and atom (not symbol)) . atom) + ;; 62 + ((and atom (not string)) . (or array sequence atom)) + ;; 63 Conservative + ((and symbol (not (member foo))) . symbol) + ;; 64 Conservative + ((and symbol (not (member 3))) . symbol) + ;; 65 + ((and (not (member foo)) (integer 1 10)) . (integer 1 10)) + ;; 66 + ((and (member foo) (not (integer 1 10))) . (member foo)) + ;; 67 + ((and t (not (member foo))) . (not (member foo))) + ;; 68 + ((and integer (not (integer 3 4))) . (or (integer * 2) (integer 5 *))) + ;; 69 + ((and (integer 0 20) (not (integer 5 10))) . (or (integer 0 4) (integer 11 20)))) "Alist type specifier -> expected type specifier.") (defmacro comp-cstr-synthesize-tests () |