Skip to content

Commit 8895c0f

Browse files
committed
Adding more test from SRFI-226
1 parent 982392a commit 8895c0f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/tests/sagittarius/continuations.scm

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,25 @@
243243
(call-with-composable-continuation values tag)))))
244244
tag))
245245

246+
(test-equal '(foo bar)
247+
(let ([tag (make-continuation-prompt-tag)])
248+
(call-with-continuation-prompt
249+
(lambda ()
250+
(+ 1
251+
(abort-current-continuation tag 'foo 'bar)
252+
2))
253+
tag
254+
list)))
255+
256+
(test-equal 27
257+
(let ([tag (make-continuation-prompt-tag)])
258+
(call-with-continuation-prompt
259+
(lambda ()
260+
(abort-current-continuation tag
261+
(lambda ()
262+
(abort-current-continuation tag
263+
(lambda ()
264+
27)))))
265+
tag
266+
#f)))
246267
(test-end)

0 commit comments

Comments
 (0)