Ad
  • Default User Avatar

    thanks, my mistake

  • Default User Avatar

    How come in the description this function is expected to return 100 when passed (0,4):

      cubeSum(0,4); // => 1^3+2^3+3^3+4^3 = 100;
    

    ... but when tested to return 225 (only 5^3) when passed (0,5)?

      Test.assertEquals(cubeSum(5, 0), 225, "cubeSum(5,0)");
    

    I'm either getting it wrong or the task is inconsistent with the test :) Thanks!