projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef14411
)
One more flatten-tree test
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 17 Dec 2018 18:19:48 +0000
(10:19 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 17 Dec 2018 18:26:15 +0000
(10:26 -0800)
* test/lisp/subr-tests.el (subr-tests-flatten-tree):
Add a test for lots of nothing.
test/lisp/subr-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/subr-tests.el
b/test/lisp/subr-tests.el
index 08f9a697a3cae377707cd8c026d8327ce1d1e822..b7df7186836bdbe4cc423660271b60689e744138 100644
(file)
--- a/
test/lisp/subr-tests.el
+++ b/
test/lisp/subr-tests.el
@@
-383,9
+383,11
@@
See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19350."
(should (equal (flatten-tree 42)
'(42)))
(should (equal (flatten-tree t)
- '(t)))
+
'(t)))
(should (equal (flatten-tree nil)
- nil))
+ nil))
+ (should (equal (flatten-tree '((nil) ((((nil)))) nil))
+ nil))
(should (equal (flatten-tree '(1 ("foo" "bar") 2))
'(1 "foo" "bar" 2))))