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 default-check-attempts 100)
|
||||
(define default-check-attempts 1000)
|
||||
|
||||
(define ascii-chars-threshold 50)
|
||||
(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)])
|
||||
(if (andmap (λ (bindings)
|
||||
(with-handlers ([exn:fail? (λ (exn)
|
||||
(fprintf (current-error-port)
|
||||
"checking ~s raises ~s\n"
|
||||
term exn)
|
||||
(fprintf (current-error-port)
|
||||
"checking ~s raises an exception\n"
|
||||
term)
|
||||
(raise exn))])
|
||||
(property term bindings)))
|
||||
(cond [(and match (match term))
|
||||
|
|
Loading…
Reference in New Issue
Block a user