Ad
  • Default User Avatar

    It is not obvious what is written in the tests output. Especially for beginners.
    I barely understood that in first line is a "sunday" checking, in second - month and in third - date. Please, make more informative outputs.

    #dstEnd with year 2004

    Test Passed: Value == 0

    Test Passed: Value == 10

    Test Passed: Value == 7

  • Default User Avatar

    Hi,
    it is unnecessary to use construction like: n % 2 == 0? true : false
    because n % 2 == 0 returns boolean value.

    You could simply write return [isPrime, n % 2 == 0, n % 10 == 0];
    And it will work fine.

  • Default User Avatar

    Dieser Kata ist lustig :)

  • Default User Avatar
  • Default User Avatar

    I found what is wrong with my code=)
    I interpreted the last comma after "currency" as a part of the answer(and I made a code for it), but it is only separator between the expected and real answer ^_^
    I leave this post here for somebody else who can have problems with commas.

  • Default User Avatar

    Hmmm... I have right answers, but still I can`t pass test:

    Expected: 123,456, instead got: 123,456,
    Expected: 1,234, instead got: 1,234,
    Expected: 123, instead got: 123,
    Expected: 123,456,789,012, instead got: 123,456,789,012,

    I can`t get what is wrong with the output