aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2019-07-18 17:57:01 +0200
committerAndrea Corallo2020-01-01 11:33:54 +0100
commitfb9711df98be83c357321761d06e902e5410da79 (patch)
tree77901bf9d11e627d2adead8e73639752f83247c9 /test/src
parent13811eba32c8d43126e3d137ddcedbdab4dd81c6 (diff)
downloademacs-fb9711df98be83c357321761d06e902e5410da79.tar.gz
emacs-fb9711df98be83c357321761d06e902e5410da79.zip
uncommenting some tests
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-tests.el41
1 files changed, 20 insertions, 21 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index e27e585ea50..d11cf8657c6 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -168,38 +168,37 @@
168 ;; (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3) '(1 2 (3)))) 168 ;; (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3) '(1 2 (3))))
169 ;; (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3 4) '(1 2 (3 4)))) 169 ;; (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3 4) '(1 2 (3 4))))
170 170
171 ;; (defun comp-tests-ffuncall-native-f () 171 (defun comp-tests-ffuncall-native-f ()
172 ;; "Call a primitive with no dedicate op." 172 "Call a primitive with no dedicate op."
173 ;; (make-vector 1 nil)) 173 (make-vector 1 nil))
174 174
175 ;; (native-compile #'comp-tests-ffuncall-native-f) 175 (native-compile #'comp-tests-ffuncall-native-f)
176 176
177 ;; (should (equal (comp-tests-ffuncall-native-f) [nil])) 177 (should (equal (comp-tests-ffuncall-native-f) [nil]))
178 178
179 ;; (defun comp-tests-ffuncall-native-rest-f () 179 (defun comp-tests-ffuncall-native-rest-f ()
180 ;; "Call a primitive with no dedicate op with &rest." 180 "Call a primitive with no dedicate op with &rest."
181 ;; (vector 1 2 3)) 181 (vector 1 2 3))
182 182
183 ;; (native-compile #'comp-tests-ffuncall-native-rest-f) 183 (native-compile #'comp-tests-ffuncall-native-rest-f)
184 184
185 ;; (should (equal (comp-tests-ffuncall-native-rest-f) [1 2 3])) 185 (should (equal (comp-tests-ffuncall-native-rest-f) [1 2 3]))
186 186
187 ;; (defun comp-tests-ffuncall-apply-many-f (x) 187 (defun comp-tests-ffuncall-apply-many-f (x)
188 ;; (apply #'list x)) 188 (apply #'list x))
189 189
190 ;; (native-compile #'comp-tests-ffuncall-apply-many-f) 190 (native-compile #'comp-tests-ffuncall-apply-many-f)
191 191
192 ;; (should (equal (comp-tests-ffuncall-apply-many-f '(1 2 3)) '(1 2 3))) 192 (should (equal (comp-tests-ffuncall-apply-many-f '(1 2 3)) '(1 2 3)))
193 193
194 ;; (defun comp-tests-ffuncall-lambda-f (x) 194 (defun comp-tests-ffuncall-lambda-f (x)
195 ;; (let ((fun (lambda (x) 195 (let ((fun (lambda (x)
196 ;; (1+ x)))) 196 (1+ x))))
197 ;; (funcall fun x))) 197 (funcall fun x)))
198 198
199 ;; (native-compile #'comp-tests-ffuncall-lambda-f) 199 (native-compile #'comp-tests-ffuncall-lambda-f)
200 200
201 ;; (should (= (comp-tests-ffuncall-lambda-f 1) 2)) 201 (should (= (comp-tests-ffuncall-lambda-f 1) 2)))
202 )
203 202
204;; (ert-deftest comp-tests-jump-table () 203;; (ert-deftest comp-tests-jump-table ()
205;; "Testing jump tables" 204;; "Testing jump tables"