aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2019-06-30 21:01:28 +0200
committerAndrea Corallo2020-01-01 11:33:48 +0100
commitfac313889774e5e4867788d6f2c58595e8e1604b (patch)
tree2decadcb0dff075cb3b3364f8fe0910c3b4b882d /test/src
parent3fd19aecee00d8ac1b001ed7aebf9c4ff4f36001 (diff)
downloademacs-fac313889774e5e4867788d6f2c58595e8e1604b.tar.gz
emacs-fac313889774e5e4867788d6f2c58595e8e1604b.zip
add comp-tests-ffuncall-lambda-f test
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-tests.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 42e10ba5114..7bd4ddf01ca 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -179,7 +179,17 @@
179 (byte-compile #'comp-tests-ffuncall-apply-many-f) 179 (byte-compile #'comp-tests-ffuncall-apply-many-f)
180 (native-compile #'comp-tests-ffuncall-apply-many-f) 180 (native-compile #'comp-tests-ffuncall-apply-many-f)
181 181
182 (should (equal (comp-tests-ffuncall-apply-many-f '(1 2 3)) '(1 2 3)))) 182 (should (equal (comp-tests-ffuncall-apply-many-f '(1 2 3)) '(1 2 3)))
183
184 (defun comp-tests-ffuncall-lambda-f (x)
185 (let ((fun (lambda (x)
186 (1+ x))))
187 (funcall fun x)))
188
189 (byte-compile #'comp-tests-ffuncall-lambda-f)
190 (native-compile #'comp-tests-ffuncall-lambda-f)
191
192 (should (= (comp-tests-ffuncall-lambda-f 1) 2)))
183 193
184(ert-deftest comp-tests-conditionals () 194(ert-deftest comp-tests-conditionals ()
185 "Testing conditionals." 195 "Testing conditionals."