Fix the tests that break due to semantic changes in object-contract.
svn: r18290 original commit: 6326731a15805a27e8f14170b9af8f7b50668e54
This commit is contained in:
parent
28bbf99b88
commit
84b34f6318
|
@ -1652,10 +1652,12 @@ of the contract library does not change over time.
|
|||
|
||||
(test/pos-blame
|
||||
'object-contract/field2
|
||||
'(contract (object-contract (field x integer?))
|
||||
(new (class object% (field [x #t]) (super-new)))
|
||||
'pos
|
||||
'neg))
|
||||
'(get-field
|
||||
x
|
||||
(contract (object-contract (field x integer?))
|
||||
(new (class object% (field [x #t]) (super-new)))
|
||||
'pos
|
||||
'neg)))
|
||||
|
||||
(test/spec-passed/result
|
||||
'object-contract/field3
|
||||
|
@ -1669,17 +1671,21 @@ of the contract library does not change over time.
|
|||
|
||||
(test/pos-blame
|
||||
'object-contract/field4
|
||||
'(contract (object-contract (field x boolean?) (field y boolean?))
|
||||
(new (class object% (field [x #t] [y 'x]) (super-new)))
|
||||
'pos
|
||||
'neg))
|
||||
'(get-field
|
||||
y
|
||||
(contract (object-contract (field x boolean?) (field y boolean?))
|
||||
(new (class object% (field [x #t] [y 'x]) (super-new)))
|
||||
'pos
|
||||
'neg)))
|
||||
|
||||
(test/pos-blame
|
||||
'object-contract/field5
|
||||
'(contract (object-contract (field x symbol?) (field y symbol?))
|
||||
(new (class object% (field [x #t] [y 'x]) (super-new)))
|
||||
'pos
|
||||
'neg))
|
||||
'(get-field
|
||||
x
|
||||
(contract (object-contract (field x symbol?) (field y symbol?))
|
||||
(new (class object% (field [x #t] [y 'x]) (super-new)))
|
||||
'pos
|
||||
'neg)))
|
||||
|
||||
(test/spec-passed/result
|
||||
'object-contract/field6
|
||||
|
@ -4521,10 +4527,10 @@ so that propagation occurs.
|
|||
|
||||
(ctest #f contract-first-order-passes? (flat-rec-contract the-name) 1)
|
||||
|
||||
(ctest #t contract-first-order-passes?
|
||||
(ctest #f contract-first-order-passes?
|
||||
(object-contract (m (-> integer? integer?)))
|
||||
(new object%))
|
||||
(ctest #t contract-first-order-passes?
|
||||
(ctest #f contract-first-order-passes?
|
||||
(object-contract (m (-> integer? integer?)))
|
||||
1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user