add a test case to be sure recursive-contract accepts

values with sharing but without cycles
This commit is contained in:
Robby Findler 2014-06-13 03:01:40 -05:00
parent 17451d9662
commit 3c6f0d5d04

View File

@ -85,4 +85,12 @@
(placeholder-set! ph (cons ph ph))
(contract c (make-reader-graph ph) 'pos 'neg)
(void)))
)
(test/spec-passed
'recursive-contract13
'(let ()
(define c
(recursive-contract
(or/c #f (cons/c c c))))
(define x (cons #f #f))
(contract c (cons (cons x x) (cons x x)) 'pos 'neg))))