mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
test/lisp/emacs-lisp/bytecomp-tests.el: Add more tests for switch.
This commit is contained in:
parent
219339e2eb
commit
c24e8290fa
@ -253,7 +253,12 @@ bytecompiled code, and their results compared.")
|
||||
(let ((a 'three)) (cond ((eq a 'one) 1) ((eq a 2) 'two) ((eq a 'three) 3)
|
||||
(t t)))
|
||||
(let ((a 2)) (cond ((eq a 'one) 1) ((eq a 1) 'one) ((eq a 2) 'two)
|
||||
(t nil))))
|
||||
(t nil)))
|
||||
(let ((a 2.0)) (cond ((eql a 2) 'incorrect) ((eql a 2.00) 'correct)))
|
||||
(let ((a "foobar")) (cond ((equal "notfoobar" a) 'incorrect)
|
||||
((equal 1 a) 'incorrect)
|
||||
((equal a "foobar") 'correct)
|
||||
(t 'incorrect))))
|
||||
"List of expressions for testing byte-switch.")
|
||||
|
||||
(defun bytecomp-check-1 (pat)
|
||||
|
Loading…
Reference in New Issue
Block a user