add test for the prev bugfix
This commit is contained in:
parent
7b3972e832
commit
4dd5e5b0d6
|
@ -0,0 +1,24 @@
|
|||
(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)
|
Loading…
Reference in New Issue