Ad
  • Custom User Avatar

    No problem! So now you can either take out the tests with decimals, or remove the instruction that says only integers (: just so that the instructions are not misleading.

  • Custom User Avatar

    haha one thing you could do is at the top of your tests, put this:

    Math.pow = function(b, e) { Test.assertEquals(0,1,"Don't use Math.pow!"); }
    

    That way, if Math.pow is called, it'll run your custom implementation of it that just automatically fails.

  • Custom User Avatar

    "Obs: x and y will be integers, so DON'T take fractions into consideration"

    There is a test with y = 0.5, so either change this test or remove that statement from the instructions (: