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.
Ah, my mistake. I returned the original String for
i===0
. Thanks!Description says:
Test-cases expecting a
0-length string
are testingleft$( aString, 0 )
I don't really understand what testcase might cause the message
Expects a 0-length string - Expected: , instead got: Keep It Simple Stupid
I read it as: when
i
is an empty String, $left/$right should return an empty String. If I implement it like such and test it myself (eg.Test.assertEquals( left$('Hello o o o World', ''), '');
), my test passes but the aforementioned test still fails.Could you explain which case this is supposed to test?