Ad
  • Custom User Avatar

    Pretty simple kata, to be honest

  • Custom User Avatar

    Random tests
    ReferenceError: n is not defined
    at Object.Test.describe

  • Custom User Avatar

    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