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

Generalized formatting of generated values #353

Closed
wants to merge 5 commits into from
Closed

Generalized formatting of generated values #353

wants to merge 5 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 11, 2021

Opening this PR to get feedback early. This is to address #326.

I tried adding this at a Property level, but its type argument doesn't track the type being generated so it doesn't work there.

/cc @moodmosaic @TysonMN

gen with Config = { gen.Config with Formatter = formatter }
}

let ofRandom (r : Random<Tree<'a>>) : Gen<'a> = {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted in #346, this needs to be traced carefully so we don't end up overriding the configuration.

@ghost ghost changed the title Initial commit, need to keep config better still. Generalized formatting of generated values Sep 11, 2021
src/Hedgehog/Gen.fs Outdated Show resolved Hide resolved
.devcontainer/Dockerfile Outdated Show resolved Hide resolved
src/Hedgehog/Gen.fs Outdated Show resolved Hide resolved
src/Hedgehog/Property.fs Show resolved Hide resolved
@ghost ghost closed this by deleting the head repository Oct 27, 2022
This pull request was closed.
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.

2 participants