mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 06:09:18 +02:00
adding basic call/cc tests
This commit is contained in:
parent
6941ada64f
commit
ddf866ee27
1 changed files with 4 additions and 0 deletions
|
@ -368,6 +368,10 @@
|
||||||
|
|
||||||
(test '(3 3) (let ((p (delay (+ 1 2)))) (list (force p) (force p))))
|
(test '(3 3) (let ((p (delay (+ 1 2)))) (list (force p) (force p))))
|
||||||
|
|
||||||
|
(test 7 (call-with-current-continuation (lambda (k) (+ 2 5))))
|
||||||
|
|
||||||
|
(test 3 (call-with-current-continuation (lambda (k) (+ 2 5 (k 3)))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(test-report)
|
(test-report)
|
||||||
|
|
Loading…
Add table
Reference in a new issue