aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index 0f18a34578d..5bd36898702 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -334,7 +334,20 @@
334 ((memql x '(9 0.5 1.5 q)) 66) 334 ((memql x '(9 0.5 1.5 q)) 66)
335 (t 99))) 335 (t 99)))
336 '(a b c d (d) (a . b) "X" 0.5 1.5 3.14 9 9.0)) 336 '(a b c d (d) (a . b) "X" 0.5 1.5 3.14 9 9.0))
337 ) 337 ;; Multi-switch cond form
338 (mapcar (lambda (p) (let ((x (car p)) (y (cadr p)))
339 (cond ((consp x) 11)
340 ((eq x 'a) 22)
341 ((memql x '(b 7 a -3)) 33)
342 ((equal y "a") 44)
343 ((memq y '(c d e)) 55)
344 ((booleanp x) 66)
345 ((eq x 'q) 77)
346 ((memq x '(r s)) 88)
347 ((eq x 't) 99)
348 (t 999))))
349 '((a c) (b c) (7 c) (-3 c) (nil nil) (t c) (q c) (r c) (s c)
350 (t c) (x "a") (x "c") (x c) (x d) (x e))))
338 "List of expression for test. 351 "List of expression for test.
339Each element will be executed by interpreter and with 352Each element will be executed by interpreter and with
340bytecompiled code, and their results compared.") 353bytecompiled code, and their results compared.")