mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-13 09:32:47 +00:00
One more flatten-tree test
* test/lisp/subr-tests.el (subr-tests-flatten-tree): Add a test for lots of nothing.
This commit is contained in:
parent
ef144113f3
commit
3621593616
@ -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))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user