aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/automated/map-tests.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/automated/map-tests.el b/test/automated/map-tests.el
index 5201116613e..e65af894275 100644
--- a/test/automated/map-tests.el
+++ b/test/automated/map-tests.el
@@ -66,6 +66,12 @@ Evaluate BODY for each created map.
66 (with-maps-do map 66 (with-maps-do map
67 (assert (= 5 (map-elt map 7 5))))) 67 (assert (= 5 (map-elt map 7 5)))))
68 68
69(ert-deftest test-map-elt-with-nil-value ()
70 (assert (null (map-elt '((a . 1)
71 (b))
72 'b
73 '2))))
74
69(ert-deftest test-map-put () 75(ert-deftest test-map-put ()
70 (with-maps-do map 76 (with-maps-do map
71 (map-put map 2 'hello) 77 (map-put map 2 'hello)