Skip to content

Share same random value with multiple arbitraries #3258

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

You must be logged in to vote

Hey,

Actually, with fast-check you don't really have to bother with such constraints. The case 'a === b' will not be that unlikely as the framework uses some bias internally that makes collisions more likely.

Otherwise if you really want the same value twice you may want to use fc.clone.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dubzzz
Comment options

@dubzzz
Comment options

Answer selected by dubzzz
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