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.
Right, because groans someone is not adding a
var
/let
in front of a variable again.Fixed.
I can't solve it. Your comment make me feel stupid
Agreed. It is a bit involved, but not difficult. I would have rated it 4kyu, perhaps even 5kyu.
Did you fix it that way?
You rock!
Fixed that :)!
Pretty simple kata, to be honest
I had the same.
Remove
'use strict';
if you set.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