fix random-generation for and/c

This commit is contained in:
Robby Findler 2016-01-05 09:14:15 -06:00
parent 3f4dcb8e87
commit c7726e23ec

View File

@ -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)