Skip to content

Is there any difference in behavior when reusing the same Arbitrary instance vs. using distinct instances? #3530

Answered by dubzzz
jmartinezmaes asked this question in Q&A
Discussion options

You must be logged in to vote

I'd say there is no difference at all. All arbitraries are stateless and re-using or not the instance has no impact on fast-check's behaviour, it's supposed to behave fully the same.

The function approach is closer to the APIs of fast-check, but while it makes sense in the library to offer configurable arbitraries it's mostly up to the user when it's for user specific arbitraries.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jmartinezmaes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants