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.
Pretty simple kata, to be honest
Random tests
ReferenceError: n is not defined
at Object.Test.describe
For JS version there are no test cases described. When porting cases from Coffee version I got this:
Should be able to sort 3 liquids
Expected: [["O","O","O","O"],["W","W","W","W"],["H","H","H","H"]], instead got: [["O","O","O","O"],["W","W","W","W"],["H","H","H","H"]]
Should be able to handle 4 liquids
Expected: [["O","O","O","O"],["A","A","A","A"],["W","W","W","W"],["H","H","H","H"]], instead got: [["O","O","O","O"],["A","A","A","A"],["W","W","W","W"],["H","H","H","H"]]
Should be able to handle one row
Expected: [["O","A","W","H"]], instead got: [["O","A","W","H"]]
Should be able to handle one column
Expected: [["O"],["A"],["W"],["H"]], instead got: [["O"],["A"],["W"],["H"]]
Also, for arrays assertSimilar method should be used, not assertEquals