Skip to content

Commit

Permalink
Add a commet to the randomized unit test about the chance of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sequba committed Nov 9, 2023
1 parent 63e477b commit 510302d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/interpreter/function-randbetween.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Interpreter - function RANDBETWEEN', () => {
arr[val] += 1
}
for (const val of arr) {
expect(val).toBeGreaterThan(0)
expect(val).toBeGreaterThan(0) // 10*9^100/10^100 ~= 0.0003 chance of failure if truly random
}
})

Expand Down

0 comments on commit 510302d

Please sign in to comment.