aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/obarray-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/obarray-tests.el')
-rw-r--r--test/lisp/obarray-tests.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/obarray-tests.el b/test/lisp/obarray-tests.el
index 9a2d65d8b41..4908b883240 100644
--- a/test/lisp/obarray-tests.el
+++ b/test/lisp/obarray-tests.el
@@ -43,14 +43,16 @@
43(ert-deftest obarray-make-default-test () 43(ert-deftest obarray-make-default-test ()
44 (let ((table (obarray-make))) 44 (let ((table (obarray-make)))
45 (should (obarrayp table)) 45 (should (obarrayp table))
46 (should (equal (make-vector 59 0) table)))) 46 (should (eq (obarray-size table) obarray-default-size))))
47 47
48(ert-deftest obarray-make-with-size-test () 48(ert-deftest obarray-make-with-size-test ()
49 ;; FIXME: Actually, `wrong-type-argument' is not the right error to signal,
50 ;; so we shouldn't enforce this misbehavior in tests!
49 (should-error (obarray-make -1) :type 'wrong-type-argument) 51 (should-error (obarray-make -1) :type 'wrong-type-argument)
50 (should-error (obarray-make 0) :type 'wrong-type-argument) 52 (should-error (obarray-make 0) :type 'wrong-type-argument)
51 (let ((table (obarray-make 1))) 53 (let ((table (obarray-make 1)))
52 (should (obarrayp table)) 54 (should (obarrayp table))
53 (should (equal (make-vector 1 0) table)))) 55 (should (eq (obarray-size table) 1))))
54 56
55(ert-deftest obarray-get-test () 57(ert-deftest obarray-get-test ()
56 (let ((table (obarray-make 3))) 58 (let ((table (obarray-make 3)))