fsharp-hedgehog
fsharp-hedgehog copied to clipboard
Example on the front page is wrong
let propReverse : Property<bool> =
property {
let! xs = Gen.list (Range.linear 0 100) Gen.alpha
return xs |> List.rev |> List.rev = xs
}
This can't be piped into Property.render |> printfn "%s", Property.render needs Property<unit> as an argument.
I got hedgehog with dotnet package add Hedgehog
Thanks for reporting.
The correct fix is to first pipe into Property.falseToFailure.
Can you create a PR with this change?