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