Skip to content

Commit

Permalink
better failing test for continuations
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 27, 2024
1 parent 8647f53 commit a703a27
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/continuations.scm
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
(test.failing "continuations: base"
(lambda (t)
(define x 0)

(t.is (+ 2 (call/cc (lambda (cc)
(set! x cc)
3)))
5)

(t.is (x 4) 6)))
(let ((x #f))
(let ((val (call/cc (lambda (cont)
(cont 5)
(set! x #t)))))
(t.is val 5)
(t.is x #f)))))

(test.failing "continuations: make-range"
(lambda (t)
Expand Down

0 comments on commit a703a27

Please sign in to comment.