Line | |
---|
1 | (in-package :cl-user) |
---|
2 | |
---|
3 | (prove:plan 1) |
---|
4 | |
---|
5 | (defun two-arg-fn (one two) |
---|
6 | (format t "Two args: ~S and ~S~%" one two)) |
---|
7 | |
---|
8 | (prove:ok |
---|
9 | (let ((fn (compile nil '(lambda () |
---|
10 | (two-arg-fn |
---|
11 | (block test-block |
---|
12 | (unwind-protect |
---|
13 | 30 |
---|
14 | (return-from test-block 8))) |
---|
15 | -1))))) |
---|
16 | (let ((result (funcall fn))) |
---|
17 | (values |
---|
18 | (not result) |
---|
19 | result))) |
---|
20 | (format nil "Checking for successfull compilation of two argument functionâŠ")) |
---|
21 | |
---|
22 | (prove:finalize) |
---|
23 | |
---|
24 | |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.