I am not sure I understand the issue here, I tried running your code and I noticed it passes when (1, 5) and (1, 2) fail to show up in the random test cases for some reason.
I have now added these two test cases to the fixed "advanced tests" to make sure they always show up.
Done, and also changed the tolerance of the example test cases to
+/- 1e-8
as it was still the0.01
as in the old version. Thank youThank you!
Thanks for the input, I've added more fixed tests and more random tests. I will mark the issue as resolved now.
Agreed. I changed the tests to tolerate erros of +/- 1e-8.
I am not sure I understand the issue here, I tried running your code and I noticed it passes when (1, 5) and (1, 2) fail to show up in the random test cases for some reason.
I have now added these two test cases to the fixed "advanced tests" to make sure they always show up.
Does this solve the issue?
A probability can be expressed as a number between 0 and 1, a fraction or a percentage.
Here one of the many sources you can find online
Ok, thanks for the heads-up!
I did, honestly I just haven't worked out how to do it yet :D any good pointers? Sorry I am still learning about testing!