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.
Good one.
Please add random test cases in Javascript. See my updated "solution" below (I did solve the Kata correctly first.)
Thank you for exposing the need for random test cases.
BAC% = (A × (5.14 / W) × r) - .015 × H
is a less ambiguous formula description
This kata was decided to be kept.
So is the second string guaranteed to contain only letters or there may be special characters too?
This kata is a subject to a deduplication process here: https://github.com/codewars/content-issues/issues/61 .
Please join the discussion and share your opinion so duplicate kata could be identified, and then retired.
🐰
C translation (author gone)
hahaha
Random tests always expect false.
Fixed it.
That test expects false in both places, the expected and actual answer were flipped, fixed it.
assertEquals(Kata.nameInStr("A crew that boards the ship", "chris"), false);
As per sample test, expected result is false. But on testing, the feedback is
expected:true but was:false
for the same.
That's cheating :(
Loading more items...