aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/fns-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el
index d440cfabda4..d560f0bb0d9 100644
--- a/test/src/fns-tests.el
+++ b/test/src/fns-tests.el
@@ -602,4 +602,15 @@
602 (should (equal x y)) 602 (should (equal x y))
603 (should-not (eql x 0.0e+NaN)))) 603 (should-not (eql x 0.0e+NaN))))
604 604
605(ert-deftest test-bignum-hash ()
606 "Test that hash tables work for bignums."
607 ;; Make two bignums that are eql but not eq.
608 (let ((b1 (1+ most-positive-fixnum))
609 (b2 (1+ most-positive-fixnum)))
610 (dolist (test '(eq eql equal))
611 (let ((hash (make-hash-table :test test)))
612 (puthash b1 t hash)
613 (should (eq (gethash b2 hash)
614 (funcall test b1 b2)))))))
615
605(provide 'fns-tests) 616(provide 'fns-tests)