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.
Thanks LeftofZen, I added your change. I did attempt to swap the assertEquals method's arguments though, as the
expected:<[throw towel]> but was:<[42 -9]>
was annoying the hell out of me.Is it just me or is the Example Test Cases totally untestable in in the Kata editor and even omnitted from the revisions page?
No wonder so many Katas has broken Example Test Cases.
PS: Is the Java Test Cases ok? It uses somewhat the same as what the Example Test Cases had.
You need to import junit.Assert if you want to use assert in Java. You also need to fix up the actual assert line to use equals since we are doing a string comparison. Change the default test case to the following:
I don't know Java, so if you can tell me what is wrong I will fix it.
What exactly are we wrapping in
code
tags? For example:These issues with "null" showing up in the most unexpected places of a result are very annoying... Although I guess that is an issue with the CodeWars site as opposed to the kata.
I believe I have it figured out (trying with the Java version of this kata), but I keep getting an error with the test case and cannot submit the solution. Error description follows:
It looks to me as if whoever converted this kata over to Java didn't implement the "is(String)" properly, I bet it's an easy fix although I can't be sure.