Skip to content

Explicit bias (Range) #2978

Answered by dubzzz
moodmosaic asked this question in Q&A
May 27, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @moodmosaic,

In fast-check the size à-la-QuickCheck has been divided into two distinct parts.

The bias itself - Historically, we introduced a bias that will generate extreme values with higher probability for first runs and lower as we go in the runs. Contrary to the solutions adopted by jsverify, QuickCheck and many others, we don't say: "first runs must only generate small values". Doing that may miss issues as some bugs may appear for long arrays with only small values. More details on the historical bias here.

The size - Starting at the middle of the v2, we introduced the idea of size. The main reasons for this approach was: We want our users to write the contract the code should h…

Replies: 1 comment 2 replies

Comment options

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

@dubzzz
Comment options

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