Ad
  • Custom User Avatar

    The Javascript tests for 1000 and 1000000 always pass because those tests accidentally check against the test's own reference implementation of the method:

    it("fib 1000",()=>assert.strictEqual( F(1e3), 4346655... <- note F not fib

  • Custom User Avatar

    I think there should be a test or 2 added to the suite. It is possible to write a solution that passes all of the kata's tests, but fails the following:

    it("out of order uncolored", function(){
      Test.assertEquals(canCast('1BBBBGWWW', '3G','2W','1B'), true);
    
      Test.assertEquals(canCast('1BBBBGWWW', '3B','2W','1G'), true);
    });