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.
This is not the way to teach anything about testing. I propose you unpublish this kata.
oh yeah
btw sorry that i come back to it 1 month later, sorry lol
This comment is hidden because it contains spoiler information about the solution
Now the example user code is simpler.
Done
Added 2 rando mtest
Thank you for feedback. It will be rewrited.
And anyways, this kata's premise is deeply flawed; hypocritical, even:
a
andb
in full double-precision float range (which you clearly didn't bother to; you only tested small values ofa
andb
)..includes
instead of.indexOf
, when sometimes you're testingindexOf(something) > 0
instead of>= 0
Description should specify that
toString
allowsa
andb
to be uppercase.Tests doesn't test that
f
reacts properly toNaN
and non-number input values.There are no random tests.
There are many similar tests in a single
it
block with the same failure assertion message, making it impossible to distinguish which sub-test was failed.Every
it
block should do one thing only. If you need to further group the test, nestdescribe
blocks.The best practicle is not use tested function for make test content: if you function got same error it can make false negative test case.
This comment is hidden because it contains spoiler information about the solution
Good Kumite description formalization.
You may make good Kata from this solution.
I found bug when add 2 word of '???' with same text length or case with impossible solving do error "list index out of range".
Hello. So, I'm translate my other Kata to JavaScript. But no more people pass it on JS at past week. https://www.codewars.com/kata/663f897c017512f970cc6f02/javascript
Loading more items...