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.
Sometimes when you are checking your solution by printing out each one of the instrutions make the buffer to get full. That is why the system tells it is timed out. Same thing happened to me, so I deleted the cout. All the problem got fixed.
'alr approved some time ago'
I did the same and it timed out.
Done
One more thing: it's
std::size_t
.Alright, I've moved srand() so it should only be called once per test run.
srand
should be called once, otherwise there's no real randomness.And it's
std::srand
,std::rand
,std::time
; andstd::rand
is declared incstdlib
.Done and done.
ps: I swapped the order of the arguments as per your previous comment!
The seed of
rand
isn't initialized.The arguments of
Assert::That
in random tests are in the wrong order.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.
#define rot13 solution
works. Movesolution
intorandom_tests
orundef rot13
.Missing
include
s in the tests and in the solution.solution
is called afterrot13
with the same string, which may have been changed byrot13
(&
/&&
overload +const_cast
). Although nobody will probably do this in such a simple kata, it's still better to call reference solutions first.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.
std::cout
your inputs.Loading more items...