changed default-check-attempts and changed output when an exception is raised
svn: r13313
This commit is contained in:
parent
466df5207b
commit
798c5ee12f
|
@ -44,7 +44,7 @@ To do a better job of not generating programs with free variables,
|
||||||
|
|
||||||
(define generation-retries 100)
|
(define generation-retries 100)
|
||||||
|
|
||||||
(define default-check-attempts 100)
|
(define default-check-attempts 1000)
|
||||||
|
|
||||||
(define ascii-chars-threshold 50)
|
(define ascii-chars-threshold 50)
|
||||||
(define tex-chars-threshold 500)
|
(define tex-chars-threshold 500)
|
||||||
|
@ -735,9 +735,9 @@ To do a better job of not generating programs with free variables,
|
||||||
(let-values ([(term bindings) (generator (attempt->size attempt) attempt)])
|
(let-values ([(term bindings) (generator (attempt->size attempt) attempt)])
|
||||||
(if (andmap (λ (bindings)
|
(if (andmap (λ (bindings)
|
||||||
(with-handlers ([exn:fail? (λ (exn)
|
(with-handlers ([exn:fail? (λ (exn)
|
||||||
(fprintf (current-error-port)
|
(fprintf (current-error-port)
|
||||||
"checking ~s raises ~s\n"
|
"checking ~s raises an exception\n"
|
||||||
term exn)
|
term)
|
||||||
(raise exn))])
|
(raise exn))])
|
||||||
(property term bindings)))
|
(property term bindings)))
|
||||||
(cond [(and match (match term))
|
(cond [(and match (match term))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user