Ad
  • Custom User Avatar

    Not an issue

  • Custom User Avatar

    Shows Runtime error at TESTZERO. :/ Using Java

  • Custom User Avatar

    I seem to be passing all the tests but I'm getting a no method error;

    comp': undefined method each' for nil:NilClass (NoMethodError)
    from block in ' from block in describe'
    from measure' from describe'
    from `
    '

    Your help will be highly appreciated.

  • Default User Avatar

    @g964: Consider voting for this issue. Regards, suic

  • Default User Avatar

    Yes this fact is known since very long ago. Unfortunately 944 guys passed the Java kata and when more than 500 guys passed a kata in a given language it is not authorized to change the tests. I am very sorry for that inconvenience.

  • Default User Avatar

    Not sure how anyone is passing this. There's either an error in the instructions or in the tests.

    As posted below: "Test #3 of testBasics in PHP fails (result is false, but expected is true), which is because of $a2 having 36100 in it, but $a1 has no 190."

    This absolutely occurs. Another comment indicates that the arrays have to be of equal length, which would not make the above true. Yet another comment states that each number of A1 must have a matching square in A2, which if true, is not mentioned in the instructions.

    I hate shit like this. You guys spend so much effort trying to come up with the most elaborate, confusing problems, that you can't even keep straight what you're trying to accomplish.

  • Custom User Avatar

    I am getting a server error/timeout when I try to submit my working solution. Is that an indicator that I need to refactor or is it something internal to the site?

  • Custom User Avatar

    In JAVA asserts arguments are swapped. Now is:

    assertEquals(AreSame.comp(a, b), true); // wrong arguments order

    First argument should be expected value and the second should be received from method. It should looks like this:

    assertEquals(true, AreSame.comp(a, b)); // right arguments order

    Result of assertion is:

    "expected: (first arg) but was: (second arg)"

    and might be confusing when arguments are swapped.

  • Default User Avatar

    Print the input.

  • Custom User Avatar

    Every test is passed but test8 fails. what is the reason? Can you please give me the test case so I can check? (Java)