From e0f20da6ecd1fceabdce480dd878be293cfba027 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Fri, 18 Dec 2020 17:22:05 +0100 Subject: Simplify correctly (or (integer 1 1) (not (integer 1 1))) as t * lisp/emacs-lisp/comp-cstr.el (comp-cstr-union-1-no-mem): Logic update. * test/lisp/emacs-lisp/comp-cstr-tests.el (comp-cstr-typespec-tests-alist): Add a test. --- test/lisp/emacs-lisp/comp-cstr-tests.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/lisp/emacs-lisp') diff --git a/test/lisp/emacs-lisp/comp-cstr-tests.el b/test/lisp/emacs-lisp/comp-cstr-tests.el index f7ea00e86f2..b38573ca33a 100644 --- a/test/lisp/emacs-lisp/comp-cstr-tests.el +++ b/test/lisp/emacs-lisp/comp-cstr-tests.el @@ -199,7 +199,9 @@ ;; 80 ((and (or marker number) (integer 0 0)) . (integer 0 0)) ;; 81 - ((and t (not t)) . nil)) + ((and t (not t)) . nil) + ;; 82 + ((or (integer 1 1) (not (integer 1 1))) . t)) "Alist type specifier -> expected type specifier.") (defmacro comp-cstr-synthesize-tests () -- cgit v1.2.3