aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp
diff options
context:
space:
mode:
authorVibhav Pant2017-04-22 21:51:43 +0530
committerVibhav Pant2017-04-22 22:08:16 +0530
commit66dc8dd6d13d37ef23b52873293d95d87dca497f (patch)
tree60b9174b9848ee38f7554b45e585cf5dda376cdf /test/lisp
parent1c91bc9221d12618c9fb5507561dd35b7e392cb6 (diff)
downloademacs-66dc8dd6d13d37ef23b52873293d95d87dca497f.tar.gz
emacs-66dc8dd6d13d37ef23b52873293d95d87dca497f.zip
Add cond test cases for singleton clauses.
* test/lisp/emacs-lisp/bytecomp-tests.el: Add test cond forms where the default clause is a single non-nil expression.
Diffstat (limited to 'test/lisp')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index d0b97907389..e8feec31d26 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -280,7 +280,13 @@
280 (while l 280 (while l
281 a (setq l nil)) 281 a (setq l nil))
282 'correct) 282 'correct)
283 (t 'incorrect)))) 283 (t 'incorrect)))
284 (let ((a))
285 (cond ((eq a 'foo) 'incorrect)
286 (t)))
287 (let ((a))
288 (cond ((eq a 'foo) 'incorrect)
289 ('correct))))
284 "List of expression for test. 290 "List of expression for test.
285Each element will be executed by interpreter and with 291Each element will be executed by interpreter and with
286bytecompiled code, and their results compared.") 292bytecompiled code, and their results compared.")