picrin/t/issue/pic_call.scm

25 lines
415 B
Scheme
Raw Normal View History

2017-04-01 12:21:24 -04:00
(import (scheme base)
(scheme read)
(scheme file)
(scheme lazy)
(scheme write)
(srfi 1)
(picrin base)
(picrin test))
(test-begin)
(define trace '())
(define task-queue (make-parameter '() (lambda (x) (set! trace (cons x trace)) x)))
(define expand
(lambda ()
(task-queue)))
(define result (expand))
(test '() result)
(test '(()) trace)
(test-end)