X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/a3b210129ccf416301f36ec9ab6e624b455db907..20aea4293439281570c5c05d3f54bc5b261a4d0f:/test/automated/obarray-tests.el diff --git a/test/automated/obarray-tests.el b/test/automated/obarray-tests.el index 16ed694bb3..97df3b3b6a 100644 --- a/test/automated/obarray-tests.el +++ b/test/automated/obarray-tests.el @@ -73,17 +73,17 @@ (should (obarray-remove table "aoeu")) (should-not (obarray-get table "aoeu")))) -(ert-deftest obarray-foreach-test () +(ert-deftest obarray-map-test () "Should execute function on all elements of obarray." (let* ((table (obarray-make 3)) (syms '()) (collect-names (lambda (sym) (push (symbol-name sym) syms)))) - (obarray-foreach collect-names table) + (obarray-map collect-names table) (should (null syms)) (obarray-put table "a") (obarray-put table "b") (obarray-put table "c") - (obarray-foreach collect-names table) + (obarray-map collect-names table) (should (equal (sort syms #'string<) '("a" "b" "c"))))) (provide 'obarray-tests)