aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/map-tests.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/map-tests.el b/test/lisp/emacs-lisp/map-tests.el
index a54af8059b3..5e8c9cb9f07 100644
--- a/test/lisp/emacs-lisp/map-tests.el
+++ b/test/lisp/emacs-lisp/map-tests.el
@@ -340,7 +340,8 @@ Evaluate BODY for each created map.
340 340
341(ert-deftest test-map-into () 341(ert-deftest test-map-into ()
342 (let* ((alist '((a . 1) (b . 2))) 342 (let* ((alist '((a . 1) (b . 2)))
343 (ht (map-into alist 'hash-table))) 343 (ht (map-into alist 'hash-table))
344 (ht2 (map-into alist '(hash-table :test equal))))
344 (should (hash-table-p ht)) 345 (should (hash-table-p ht))
345 (should (equal (map-into (map-into alist 'hash-table) 'list) 346 (should (equal (map-into (map-into alist 'hash-table) 'list)
346 alist)) 347 alist))
@@ -349,6 +350,8 @@ Evaluate BODY for each created map.
349 (map-keys ht))) 350 (map-keys ht)))
350 (should (equal (map-values (map-into (map-into ht 'list) 'hash-table)) 351 (should (equal (map-values (map-into (map-into ht 'list) 'hash-table))
351 (map-values ht))) 352 (map-values ht)))
353 (should (equal (map-into ht 'alist) (map-into ht2 'alist)))
354 (should (eq (hash-table-test ht2) 'equal))
352 (should (null (map-into nil 'list))) 355 (should (null (map-into nil 'list)))
353 (should (map-empty-p (map-into nil 'hash-table))) 356 (should (map-empty-p (map-into nil 'hash-table)))
354 (should-error (map-into [1 2 3] 'string)))) 357 (should-error (map-into [1 2 3] 'string))))