aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/calc/calc-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el
index 784b404898a..6db5426ff6d 100644
--- a/test/lisp/calc/calc-tests.el
+++ b/test/lisp/calc/calc-tests.el
@@ -334,6 +334,17 @@ An existing calc stack is reused, otherwise a new one is created."
334 (should (equal tos '(- (* 2 (var x var-x)) 4))) 334 (should (equal tos '(- (* 2 (var x var-x)) 4)))
335 (should (equal trail "pdiv 2 * x - 4\nprem 8 * x + 1\n")))))) 335 (should (equal trail "pdiv 2 * x - 4\nprem 8 * x + 1\n"))))))
336 336
337(ert-deftest calc-Math-integerp ()
338 (should (Math-integerp -7))
339 (should (Math-integerp (ash 1 65)))
340 (should-not (Math-integerp '(float 1 0)))
341 (should-not (Math-integerp nil))
342
343 (should (Math-num-integerp -7))
344 (should (Math-num-integerp (ash 1 65)))
345 (should (Math-num-integerp '(float 1 0)))
346 (should-not (Math-num-integerp nil)))
347
337(provide 'calc-tests) 348(provide 'calc-tests)
338;;; calc-tests.el ends here 349;;; calc-tests.el ends here
339 350