同様に、quickcheck が反例をサポートする方法:
property \x ->
counterexample ("Foo failed with: " ++ ...) $
foo x
しかし、それが動作する方法でshouldBe
、例えば
failDetails (" details: " ++ baz a) $
a `shouldBe` 2
そして、次の行に沿って何かを印刷したいと思います:
expected: 2
but got: 3
details: ...