Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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!