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.
This comment is hidden because it contains spoiler information about the solution
I fail one random test:
testSortItOut_1(KataTest)
✔ Test Passed
testSortItOut_2(KataTest)
✔ Test Passed
testSortItOut_3(KataTest)
✔ Test Passed
testSortItOut_4(KataTest)
✔ Test Passed
testSortItOut_5(KataTest)
✔ Test Passed
testSortItOut_random(KataTest)
✘ arrays first differed at element [1];
expected : (8.2) but was : (17.2)
Please help, what could be the problem?
In next post I will post my code.
it would be awesome to have an ios app!
expected and actual results for tests should be swapped over
Thank you for your criticism ;-)
But it works, right? I'm a lazy man, sorry ;-)
really bad style to use a few ternary operators in a row