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

Applicative Gen.apply #398

Merged
merged 5 commits into from
Dec 30, 2021
Merged

Conversation

TysonMN
Copy link
Member

@TysonMN TysonMN commented Dec 22, 2021

Resolves #397

...at least that is the plan. Currently this is a draft PR. The behavior is not correct yet. There is a failing test.

@TysonMN TysonMN changed the title Applicative gen.apply Applicative Gen.apply Dec 26, 2021
@TysonMN TysonMN marked this pull request as ready for review December 26, 2021 02:28
@TysonMN
Copy link
Member Author

TysonMN commented Dec 26, 2021

Part of this PR reverts the runtime optimization added in PR #239 because correct applicative behavior is more important (since it can lead to smaller shrunken values).

@TysonMN TysonMN force-pushed the applicative_Gen.apply branch 2 times, most recently from 1f30d6f to 4cedc26 Compare December 27, 2021 18:51
@TysonMN
Copy link
Member Author

TysonMN commented Dec 28, 2021

I force pushed a new stack of commits. They are essentially the same, but some things should now be clearer. The main improvement is the addition of a commit that adds a characterization test for Gen.apply.

src/Hedgehog/Gen.fs Outdated Show resolved Hide resolved
tests/Hedgehog.Tests/GenTests.fs Show resolved Hide resolved
tests/Hedgehog.Tests/TreeTests.fs Show resolved Hide resolved
@TysonMN TysonMN force-pushed the applicative_Gen.apply branch 2 times, most recently from 325795f to 22cd73f Compare December 29, 2021 02:31
@TysonMN
Copy link
Member Author

TysonMN commented Dec 29, 2021

I squashed the two changes based on your comments into the "correct" commits and force pushed

This was referenced Dec 29, 2021
@TysonMN TysonMN merged commit dc75bf0 into hedgehogqa:master Dec 30, 2021
@TysonMN TysonMN deleted the applicative_Gen.apply branch December 30, 2021 15:42
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

Successfully merging this pull request may close these issues.

Applicative behavior for Gen.apply
2 participants