Ad
  • Default User Avatar

    no random tests in Clojure and Ruby

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The statement doesn't say the input must be a positive integer when the answer is an integer, so there should be test cases for zero and negative integer arguments.

    I know these aren't there now, since my first (and only, so far) submission will fail the zero case, returning true, when the correct answer is false; and most or all of the submissions using Math.log will fail on negative arguments.

    My submission was in Ruby, btw, but the same principle applies to all translations.

  • Custom User Avatar
    • As mentioned below, you didn't tell people how Easter is calculated (which is known to be super complicated)
    • No random tests
  • Custom User Avatar

    People are using n % 4 to solve this kata, and I dont think this is right...

    Maybe theres not enough test cases?

  • Custom User Avatar

    Hello, it will be nice, that in the task you explain more word 'power'
    For example, write in brackets like this: "power(index,exponent)" , because it may be misunderstooded by not native english speakers
    Thanks.

  • Default User Avatar

    You could add tests for Infinity in the javascript version:

    
      Test.expect(powerOf4(Infinity) === false);
      Test.expect(powerOf4(-Infinity) === false);
    
    
  • Custom User Avatar

    You could add numeric strings, such as "4", which shouldn't pass, but would with some existing solutions.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution