fix up contract test suites
original commit: 8afeed8c663242159ac08ac043ccf860779ddd91
This commit is contained in:
parent
e9a9f4e656
commit
fb93091a62
|
@ -72,9 +72,3 @@
|
||||||
(all-from-out racket/contract/private/prop
|
(all-from-out racket/contract/private/prop
|
||||||
racket/contract/private/blame))
|
racket/contract/private/blame))
|
||||||
|
|
||||||
|
|
||||||
;; copied here because not provided by racket/contract anymore
|
|
||||||
(define (flat-contract/predicate? pred)
|
|
||||||
(or (flat-contract? pred)
|
|
||||||
(and (procedure? pred)
|
|
||||||
(procedure-arity-includes? pred 1))))
|
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
...
|
...
|
||||||
[ctc-name-x (contract-name ctc-x)]
|
[ctc-name-x (contract-name ctc-x)]
|
||||||
...)
|
...)
|
||||||
(build-flat-contract
|
(flat-named-contract
|
||||||
(build-compound-type-name 'struct/c 'struct-name ctc-x ...)
|
(build-compound-type-name 'struct/c 'struct-name ctc-x ...)
|
||||||
(λ (val)
|
(λ (val)
|
||||||
(and (predicate-id val)
|
(and (predicate-id val)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user