add box/c tests (should have been included in 37a4a9ada6
)
This commit is contained in:
parent
f36dc28102
commit
4c108b09de
|
@ -19,6 +19,23 @@
|
|||
'box/c3
|
||||
'(contract (box/c integer?) (box-immutable #f) 'pos 'neg))
|
||||
|
||||
(test/pos-blame
|
||||
'box/c4
|
||||
'(contract (box/c integer? #:immutable #t) (box-immutable #f) 'pos 'neg))
|
||||
|
||||
(test/spec-passed
|
||||
'box/c5
|
||||
'(contract (box/c boolean? #:immutable #t) (box-immutable #f) 'pos 'neg))
|
||||
|
||||
(test/neg-blame
|
||||
'box/c6
|
||||
'(set-box! (contract (box/c boolean?) (box #f) 'pos 'neg) 11))
|
||||
|
||||
(test/neg-blame
|
||||
'box/c7
|
||||
'(set-box! (contract (box/c boolean?) (box 12) 'pos 'neg) 11))
|
||||
|
||||
|
||||
(test/neg-blame
|
||||
'box/c-with-cons/c-inside
|
||||
'(let ([f
|
||||
|
|
Loading…
Reference in New Issue
Block a user