aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2020-03-30 07:50:37 -0700
committerGlenn Morris2020-03-30 07:50:37 -0700
commitfa4eec5cfa8121837e5d5b89e623ba478f0759ad (patch)
tree38ef4f6bb4dafbd463053bb06ad9eaf25bb49037 /test
parent8911d0899713132ccc2299b0700dac3315c44de0 (diff)
parentc6e0981b96eaa12c28b70c949ccd6e426c13df4d (diff)
downloademacs-fa4eec5cfa8121837e5d5b89e623ba478f0759ad.tar.gz
emacs-fa4eec5cfa8121837e5d5b89e623ba478f0759ad.zip
Merge from origin/emacs-27
c6e0981b96 (origin/emacs-27) * lisp/image/image-converter.el: Fix cus... 461bd9cc20 Fix url-cookie.el for lexical binding f3ccfb1926 ; * src/decompress.c: Fix comment style. 1af03e7e92 ; * src/xfaces.c (syms_of_xfaces): Fix wording and typo. 93945fcd19 ; * test/lisp/calc/calc-tests.el: Fix mistake in last commit ee47e00f4e Don't suggest setting face-remapping-alist to a literal (B... c2b8ce4439 Calc: don't treat nil as an integer (bug#40155) e1f0e08922 * lisp/files.el (directory-files-recursively): Doc fix. (... 02b3820315 Document how to disable Tramp file archives
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