Skip to content

Commit

Permalink
Test that feeding results from counterexample/1 to check/2 works.
Browse files Browse the repository at this point in the history
* triq_tests.erl (counterexample_test): New test.
  • Loading branch information
legoscia committed Jun 11, 2010
1 parent 0e625c2 commit 84ea2a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/triq_tests.erl
Expand Up @@ -203,3 +203,7 @@ recheck_test_() ->
Bad = [[1,1], 1],
[?_assertEqual(true, triq:check(xprop_delete(), Good)),
?_assertEqual(false, triq:check(xprop_delete(), Bad))].

counterexample_test() ->
Counterexample = triq:counterexample(xprop_delete()),
?assertEqual(false, triq:check(xprop_delete(), Counterexample)).

0 comments on commit 84ea2a0

Please sign in to comment.