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.
OP solved the kata; issue not reproducible with his code.
should be defined in the
Describe(RandomTests)
body, and not insidegenerateRandomInput
method. This change will let you simplify thegenerateRandomInput
like thisn
andlimit
in other translationsIt(exampleTests)
still has no assertion messagesLooks okay, but I think it needs few corrections:
std::mt19937 engine{std::random_device{}()};
statement to theDescribe(RandomTests)
body underprivate:
section and remove them from methods.you can then use it as
genNumber
things also has no business being in the local scope, since they never change between the runs. I would suggest renaming them so they convey what they generate (e.g.genStrLength
,genArrLength
and etc) and move them to the body ofDescribe
as well.okay I added Asseert messages.Take a look and tell me how I should tweak things. Thanks!
Except for assertion messages which I dont really get it should be fine now. I also dont know how to utilise preloaded. I would welcome any advice you have!
will do! Thanks!
I dont really know how to write translation. if you want message me on discord and explain it to me: roiqk
Then I would suggest to read this article
Will fix! This is my first ever translation.
#include <vector>
should be present in every part where it is usedProbably it is best if you stay away from tall building for a while. Getting into a lift might trigger a relapse.
Nice solution. After I finished this kata in twice the lines I studied your code and rewritten it. Good job!
Took me days... and my wellbeing. I finished... but at what cost?
Noice.
When I run my C++ solution I get this: Exit Code: 132
Can someone explain what it means and how to fix it?
Loading more items...