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.
I'd like to know know what this kata teaches to have such messy code and being asked to refactor into more insanity.
Parameters can be string or object? This coder must have zero decision-making power to not make his function accept crap. Just like how the kata author is forcing us to plow throw this crap to finish the kata.
Sure.
Well, I guess that works... as long as size is up to 152.
Hey, can we have few more tests and edge cases? (Like punctuation and special characters?)
Excellent kata!
Yes, you'll usually want to use
assertSimilar
when comparing arrays.The Javascript test reference has some details on the differences.
Good tip, thanks.
Blew my mind
Ayyyy lmao, cheeky solution.
I really enjoyed this kata, can't wait to approve! :)
Cheeky!
ok thanks Im working on it
Some test cases are broken, for example the following ones:
2 and 7 are present on the second array, but not given in the expected test.
7 is present on both first and second array, but not given in the expected test.
Same as above, for 6.
Seems like the
Test.assertEquals
treats arrays differently even if they are the same, so the default "Run tests" in there won't work properly.For the fellows coders: just replace the test with
.assertSimilar
or run the tests by clicking submit.