mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
News tests for making stacks from continuations. From Neil Jerram.
This commit is contained in:
parent
7f12a94355
commit
4f2ec3becc
1 changed files with 23 additions and 0 deletions
|
@ -245,4 +245,27 @@
|
|||
exception:wrong-type-arg
|
||||
(+ (delay (* 3 7)) 13))))
|
||||
|
||||
;;;
|
||||
;;; continuations
|
||||
;;;
|
||||
|
||||
(with-test-prefix "continuation"
|
||||
|
||||
(with-test-prefix "stacks/debugging"
|
||||
|
||||
(debug-enable 'debug)
|
||||
|
||||
(pass-if "make-stack"
|
||||
(stack? (call-with-current-continuation make-stack)))
|
||||
|
||||
(pass-if "stack-id"
|
||||
(let ((id (call-with-current-continuation stack-id)))
|
||||
(or (boolean? id) (symbol? id))))
|
||||
|
||||
(pass-if "last-stack-frame"
|
||||
(pair? (call-with-current-continuation last-stack-frame)))
|
||||
|
||||
))
|
||||
|
||||
|
||||
;;; eval.test ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue