Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example on the front page is wrong #448

Open
LAC-Tech opened this issue Sep 15, 2023 · 1 comment
Open

Example on the front page is wrong #448

LAC-Tech opened this issue Sep 15, 2023 · 1 comment

Comments

@LAC-Tech
Copy link

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

@TysonMN
Copy link
Member

TysonMN commented Sep 18, 2023

Thanks for reporting.

The correct fix is to first pipe into Property.falseToFailure.

Can you create a PR with this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants