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.
done
Looks great, thanks!
Looks great thanks!
...length of the longest prefix common to both strings....
I was also caught out like that initially.
In the JS verion, it would be nice if you would add a description to your final tests. Otherwise theres no feedback as to why any of the final tests are failing.
eg: Test.assertEquals(stringSuffix('ababaa'),12, "ababaa");
In the JS version, can you not just use Test.assertSimilar(...); in the example test cases?
eg: Test.assertSimilar(number(["a", "b", "c"]), ["1: a", "2: b", "3: c"]);
Nice Julz
Agreed, have updated the description.
Thanks, have added further test cases
Thank you, I have added more tests including a random string
Interesting way of getting arounnd the 'Bananas from Bahamas' test!
suggested initial tests cases
testArray('Testing Valid Values', 'should ignore non-zero numbers', squeakyClean([1,2,3,0,1.1]), [1,2,3,1.1]);
testArray('Testing Valid Values', 'should ignore non-empty strings', squeakyClean(['hello', '14', '']), ['hello', '14']);
agree