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.
Just published another fork with 100 random tests. Feels like they would flag similar stuff as the non-random ones anyway.
I actually did that first, but you'd still have to limit the maximum value to some number. Otherwise you might get execution timeouts.
Also added a test with a very big number.
Thanks Steffan153. The first comment wasn't clear at all - it makes sense now.
Regarding the 1 random test I would completely agree in the real world! But I'm also a fan of consistency and diverging from the original translation wouldn't help anyone who wants to learn how a piece of code gets translated 1:1 from another language (test included). Changing the test makes this not a "translation" anymore. Probably the original (Java) shouldn't be allowed in the first place if that's a problem. Anyway, here is a modified version, which will test all values until 2000: https://www.codewars.com/kumite/5d4c6f84164480002b4581c8?sel=5d4c86439dbe5f001d26d1d8. I played around with the value, but going too high just makes the test time out.
Not sure what the first sentence means - isn't it private?
Regarding tests - I literally translated the original Java kata, including the tests, making it match completely.
Approve, please?