fix random-generation for and/c
This commit is contained in:
parent
3f4dcb8e87
commit
c7726e23ec
|
@ -204,7 +204,8 @@
|
||||||
(define (and/c-check-nonneg ctc pred)
|
(define (and/c-check-nonneg ctc pred)
|
||||||
(define sub-contracts (base-and/c-ctcs ctc))
|
(define sub-contracts (base-and/c-ctcs ctc))
|
||||||
(cond
|
(cond
|
||||||
[(pairwise-stronger-contracts? (list pred (not/c negative?))
|
[(pairwise-stronger-contracts?
|
||||||
|
(list (coerce-contract 'and/c-check-nonneg pred) (not/c negative?))
|
||||||
sub-contracts)
|
sub-contracts)
|
||||||
(define go (hash-ref predicate-generator-table pred))
|
(define go (hash-ref predicate-generator-table pred))
|
||||||
(λ (fuel)
|
(λ (fuel)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user