aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNicolas Petton2015-11-11 18:18:32 +0100
committerNicolas Petton2015-11-11 18:20:03 +0100
commit51d840a8a13105172211bb25d36f594aff377d8e (patch)
tree6097c4aef0d11639fb4124e4ec0a17960ca18b6d /test
parent23036bac7d470397f364d02eb992d701f1ebab4b (diff)
downloademacs-51d840a8a13105172211bb25d36f594aff377d8e.tar.gz
emacs-51d840a8a13105172211bb25d36f594aff377d8e.zip
Rename seq-p and map-p to seqp and mapp
* lisp/emacs-lisp/seq.el (seqp): New name. * lisp/emacs-lisp/map.el (mapp): New name. * doc/lispref/sequences.texi: Update the documentation for seqp. * test/automated/map-tests.el: Update the tests for mapp.
Diffstat (limited to 'test')
-rw-r--r--test/automated/map-tests.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/automated/map-tests.el b/test/automated/map-tests.el
index 1a759b523a5..2a7fcc39d41 100644
--- a/test/automated/map-tests.el
+++ b/test/automated/map-tests.el
@@ -126,16 +126,16 @@ Evaluate BODY for each created map.
126 (should (null (map-nested-elt vec '(2 1 1)))) 126 (should (null (map-nested-elt vec '(2 1 1))))
127 (should (= 4 (map-nested-elt vec '(2 1 1) 4))))) 127 (should (= 4 (map-nested-elt vec '(2 1 1) 4)))))
128 128
129(ert-deftest test-map-p () 129(ert-deftest test-mapp ()
130 (should (map-p nil)) 130 (should (mapp nil))
131 (should (map-p '((a . b) (c . d)))) 131 (should (mapp '((a . b) (c . d))))
132 (should (map-p '(a b c d))) 132 (should (mapp '(a b c d)))
133 (should (map-p [])) 133 (should (mapp []))
134 (should (map-p [1 2 3])) 134 (should (mapp [1 2 3]))
135 (should (map-p (make-hash-table))) 135 (should (mapp (make-hash-table)))
136 (should (map-p "hello")) 136 (should (mapp "hello"))
137 (should (not (map-p 1))) 137 (should (not (mapp 1)))
138 (should (not (map-p 'hello)))) 138 (should (not (mapp 'hello))))
139 139
140(ert-deftest test-map-keys () 140(ert-deftest test-map-keys ()
141 (with-maps-do map 141 (with-maps-do map