-
Notifications
You must be signed in to change notification settings - Fork 155
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
Make Gen.eval easier to use in v3 #268
Comments
I second this - would help a lot with an FsCheck integration I'm working on designed to make it much easier to use with C# POCO classes (including fun edge cases like constructor arguments, etc...). Being able to access the same StdGen instance as the |
|
Isn't |
True. |
👍 |
Currently, the type signature of
Gen.eval
isWhere
int
stands forsize
,StdGen
for an instance ofRandom
, andGen<'a>
for the generator we want to evaluate.I believe that
StdGen
shouldn't be exposed, as it's really an implementation detail, and soGen.eval
should look like:Where
int
stands forsize
, andGen<'a>
for the generator we want to evaluate.If
Runner
usesGen.eval
for test-replaying, that could be done via some other function, probably internal, or hidden.Related: #267, #236, #198.
The text was updated successfully, but these errors were encountered: