Ad
  • Custom User Avatar

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

  • 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.