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.
in my case the error it is because I had a dividend and an equal divisor, so I had to do validation and if they are the same then just add one.
This comment is hidden because it contains spoiler information about the solution
random tests were added
Thanks for the feedback. I have republished the kata with a fix.
actual
andexpected
are in the wrong order:pls fix!!1!
dfhwze wrote exactly
And this is just true. You need to add random tests or your kata will be retired and all the effort you put in it is vain. I didn't do anything but confirm this. How would this be rude, annoying, unhelpful or aggresive? Your reaction has been obnoxious.
Don't overdo it please, that's being ridiculous.
Don't poke at someone and then start crying when you get poked back. You are the one that started showing negative, and passive aggressive behavior. I will keep calling you out on your behavior.
Dfhwze... that's because I do keep learning and adjusting my opinions.
Up until today I enjoyed codewars to the point where I tried to contribute with a kata.
So far, the most annoying things were the random tests as I never had to deal with comments like yours on codewars.
So, while I still maintain that the most of the random tests I experienced here were annoying (while accepting akar-0's point that they could be useful, and that they are required by the guidlines), thanks to you, I no longer find them the most annoying. Rude, unhelpful, and unnecessarily aggresive comments which you exposed me to definitely take the top spot. Congratulations.
Dfhwze, what annoys me is not the 'correct ways' but rude and unhelpful comments from strangers.
You are mistaken, you wrote before it was annoying to write random tests. You never mentioned unhelpful comments to be annoying.
Here are your exact words:
I find the random tests to be the most annoying element of codewars.
Also, don't tell me how I should phrase my sentences. You find it annoying to get unhelpful comments, yet you do the exact same thing you don't like others to do to you. You called me out for shouting, just for using an exclamation mark. I'm starting to think the annoying factor is YOU.
You are a self-righteous nobody at all really, and I don't intend on dealing with you anymore.
That's great about 'Show Kata Test Cases' after solving. I haven't noticed this. I'll have a look at a few.
There are really many examples. The official documentation may provide good elements: https://docs.codewars.com/authoring/guidelines/submission-tests
Once you solved a kata in any language, you can see the tests by clicking on
Show Kata Test Cases
from Discourse page or Solutions page. You can also see all the translations (approved or pending approvals) by clicking onTranslations
. Among the katas you solved I think good part of them have good tests, maybe this one for Dart (though I didn't look at it detailedly: https://www.codewars.com/kumite/5d545f3d7e60090d07fcbd35?sel=5d54ddc27d018e00266e280e )Hope this helps.
Thanks again, akar-0, do you have an example of well implemented random test (in any langauge). So far my experience was that I just get an error, sometimes with input values, but never with the expected correct value.
Thank you akar-0, that is a good reason, I'll try to implement some random tests.
Dfhwze, what annoys me is not the 'correct ways' but rude and unhelpful comments from strangers.
More:
-> If you can cover all inputs, fine, do it but randomize the order they are passed to the user.
-> They do if they are properly designed
-> This is absolutely wrong, it is possible and highly recommended to provide informative tests logs.
If creating a kata the correct way annoys you, perhaps you shouldn't create any at all.
Loading more items...