aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2019-06-10 10:34:04 +0200
committerAndrea Corallo2020-01-01 11:33:40 +0100
commit097f36bc75a6570e64f80451ae4bbe2172d610e0 (patch)
tree2ccd7315056c85cb82c446671528f780d09f53c3 /test/src
parentf867699b23ad012ad71f08f88ecf3e0e8df045da (diff)
downloademacs-097f36bc75a6570e64f80451ae4bbe2172d610e0.tar.gz
emacs-097f36bc75a6570e64f80451ae4bbe2172d610e0.zip
add Badd1 support
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-tests.el25
1 files changed, 18 insertions, 7 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index e13db89ddc6..06c7697be74 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -148,18 +148,29 @@
148 148
149(ert-deftest comp-tests-fixnum () 149(ert-deftest comp-tests-fixnum ()
150 "Testing some fixnum inline operation." 150 "Testing some fixnum inline operation."
151 (defun comp-tests-fixnum-1-f (x) 151 (defun comp-tests-fixnum-1--f (x)
152 (1- x)) 152 (1- x))
153 (defun comp-tests-fixnum-1+-f (x)
154 (1+ x))
153 155
154 (byte-compile #'comp-tests-fixnum-1-f) 156 (byte-compile #'comp-tests-fixnum-1--f)
155 (native-compile #'comp-tests-fixnum-1-f) 157 (byte-compile #'comp-tests-fixnum-1+-f)
158 ;; (native-compile #'comp-tests-fixnum-1--f)
159 (native-compile #'comp-tests-fixnum-1+-f)
156 160
157 (should (= (comp-tests-fixnum-1-f 10) 9)) 161 (should (= (comp-tests-fixnum-1--f 10) 9))
158 (should (= (comp-tests-fixnum-1-f most-negative-fixnum) 162 (should (= (comp-tests-fixnum-1--f most-negative-fixnum)
159 (1- most-negative-fixnum))) 163 (1- most-negative-fixnum)))
160 (should (equal (condition-case err 164 (should (equal (condition-case err
161 (comp-tests-fixnum-1-f 'a) 165 (comp-tests-fixnum-1--f 'a)
162 (error (print err))) 166 (error err))
167 '(wrong-type-argument number-or-marker-p a)))
168 (should (= (comp-tests-fixnum-1+-f 10) 11))
169 (should (= (comp-tests-fixnum-1+-f most-positive-fixnum)
170 (1+ most-positive-fixnum)))
171 (should (equal (condition-case err
172 (comp-tests-fixnum-1+-f 'a)
173 (error err))
163 '(wrong-type-argument number-or-marker-p a)))) 174 '(wrong-type-argument number-or-marker-p a))))
164 175
165(ert-deftest comp-tests-gc () 176(ert-deftest comp-tests-gc ()