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
Alright, I've moved srand() so it should only be called once per test run.
Done and done.
ps: I swapped the order of the arguments as per your previous comment!
First time attempting a translation, so thanks for the pointers, Unnamed. I've edited the code accordingly. Let me know if there's anything else.
C++ translation available. Please review and approve.
Hah, this just made my day!
Thanks, I didn't realise it showed console output. I feel rather stupid right now, heh.
Trying to do this in C++. Sample tests all validate, but upon submission I fail a
> Random_test - Expected: equal to 1, Actual: 6
. In an effort to replicate this, I have added over a hundred unit tests locally, but have found no flaw in my algorithm so far. Is there any chance I could see the list of unit tests? Or know the list of arguments for the test I'm failing?To be clear, all the tests visible in
Sample Tests
all pass, both locally and on here. It's one run on attempting submission that's failing.