Closed dbp closed 9 months ago
It looks like this now, with a piece of code that will trigger the error (in the same format as verify-contract
):
my-prop: verification failure
counterexample: (my-prop '())
error:
my-prop: contract violation
expected: True
given: #f
blaming: anonymous-module (as server)
Say I have a function like:
And I run
(check-contract my-prop)
. If it finds a counter-example, the error just reports that the contract was violated because#f
was received whenTrue
was expected.e.g., an error like:
Like with
verify-contract
, we should see the inputs that were generated when we see the failure.