Skip to content
Snippets Groups Projects
Commit 8d1e5a00 authored by pfdietz's avatar pfdietz
Browse files

Add another test (confirm that disassemble does not cause the function being...

Add another test (confirm that disassemble does not cause the function being disassembled to itself become compiled
parent 0a728d4f
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,18 @@
(disassemble-it 'disassemble-example-fn3))
t nil)
(deftest disassemble.11
(let ((fn 'disassemble-example-fn4))
(when (fboundp fn) (fmakunbound fn))
(eval `(defun ,fn (x) x))
(let ((is-compiled? (typep (symbol-function fn) 'compiled-function)))
(multiple-value-call
#'values
(disassemble-it fn)
(if is-compiled? (notnot (typep (symbol-function fn) 'compiled-function))
(not (typep (symbol-function fn) 'compiled-function))))))
t nil t)
;;; Error tests
(deftest disassemble.error.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment