diff options
| author | Vibhav Pant | 2017-04-22 21:51:43 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2017-04-22 22:08:16 +0530 |
| commit | 66dc8dd6d13d37ef23b52873293d95d87dca497f (patch) | |
| tree | 60b9174b9848ee38f7554b45e585cf5dda376cdf | |
| parent | 1c91bc9221d12618c9fb5507561dd35b7e392cb6 (diff) | |
| download | emacs-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.
| -rw-r--r-- | test/lisp/emacs-lisp/bytecomp-tests.el | 8 |
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. |
| 285 | Each element will be executed by interpreter and with | 291 | Each element will be executed by interpreter and with |
| 286 | bytecompiled code, and their results compared.") | 292 | bytecompiled code, and their results compared.") |