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

fix(helpers): uniform distribution in helpers.arrayElements #1770

Merged
merged 8 commits into from Jan 24, 2023

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Jan 23, 2023

@ST-DDT ST-DDT added c: bug Something isn't working p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug m: helpers Something is referring to the helpers module labels Jan 23, 2023
@ST-DDT ST-DDT requested review from a team January 23, 2023 14:36
@ST-DDT ST-DDT self-assigned this Jan 23, 2023
@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

❗ No coverage uploaded for pull request base (next@3a44d5f). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 63f915d differs from pull request most recent head d49df45. Consider uploading reports for the commit d49df45 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #1770   +/-   ##
=======================================
  Coverage        ?   99.64%           
=======================================
  Files           ?     2340           
  Lines           ?   242625           
  Branches        ?     1103           
=======================================
  Hits            ?   241773           
  Misses          ?      831           
  Partials        ?       21           

@ST-DDT
Copy link
Member Author

ST-DDT commented Jan 23, 2023

FFR: https://jsben.ch/1w9rg

@ST-DDT
Copy link
Member Author

ST-DDT commented Jan 23, 2023

The new tests show that the measured results are off by less then 20/1000 from the expectation.
(Increased the error margin in the tests a bit to reduce the likelihood of errors)

@ST-DDT ST-DDT requested review from Shinigami92 and a team January 23, 2023 20:18
test/helpers.spec.ts Outdated Show resolved Hide resolved
test/helpers.spec.ts Outdated Show resolved Hide resolved
@ST-DDT ST-DDT requested a review from a team January 23, 2023 21:58
@ST-DDT ST-DDT enabled auto-merge (squash) January 24, 2023 21:52
@ST-DDT ST-DDT merged commit 2b84b33 into next Jan 24, 2023
@ST-DDT ST-DDT deleted the fix/helpers/arrayElements-uniform-distribution branch January 24, 2023 22:01
matthewmayer pushed a commit to matthewmayer/faker that referenced this pull request Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: bug Something isn't working m: helpers Something is referring to the helpers module p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Uniform distribution in helpers.arrayElements results
3 participants