add a test case to be sure recursive-contract accepts
values with sharing but without cycles
This commit is contained in:
parent
17451d9662
commit
3c6f0d5d04
|
@ -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))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user