aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2019-12-08 20:52:34 +0100
committerAndrea Corallo2020-01-01 11:38:12 +0100
commit6c9acd13d0d2aa181d21bf78d6530b3399520533 (patch)
tree8ad39ceae1030f3c9de8903c4200072194665d09 /test/src
parentb3db331e8c36ef9706ad16c12055079bcd93c022 (diff)
downloademacs-6c9acd13d0d2aa181d21bf78d6530b3399520533.tar.gz
emacs-6c9acd13d0d2aa181d21bf78d6530b3399520533.zip
single function native compilation doc + interactive support + tests
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-tests.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 230d5bfbdaf..82a30424d09 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -328,10 +328,18 @@ Check that the resulting binaries do not differ."
328(ert-deftest comp-tests-free-fun () 328(ert-deftest comp-tests-free-fun ()
329 "Check we are able to compile a single function." 329 "Check we are able to compile a single function."
330 (defun comp-tests-free-fun-f () 330 (defun comp-tests-free-fun-f ()
331 "Some doc."
332 (interactive)
331 3) 333 3)
332 (load (native-compile #'comp-tests-free-fun-f)) 334 (load (native-compile #'comp-tests-free-fun-f))
335
333 (should (subr-native-elisp-p (symbol-function #'comp-tests-free-fun-f))) 336 (should (subr-native-elisp-p (symbol-function #'comp-tests-free-fun-f)))
334 (should (= (comp-tests-free-fun-f) 3))) 337 (should (= (comp-tests-free-fun-f) 3))
338 (should (string= (documentation #'comp-tests-free-fun-f)
339 "Some doc."))
340 (should (commandp #'comp-tests-free-fun-f))
341 (should (equal (interactive-form #'comp-tests-free-fun-f)
342 '(interactive))))
335 343
336 344
337;;;;;;;;;;;;;;;;;;;; 345;;;;;;;;;;;;;;;;;;;;