Ad
  • Custom User Avatar

    Kata is now retired.

  • Custom User Avatar

    This is my first kata.(experimental..)
    Don't take this kata seriously.

  • Custom User Avatar
    • No random tests
    • Trivial map/filter/reduce is not a novel idea
  • Custom User Avatar

    When I am testing my program, it is saying "You have passed all of the tests! :)!"..
    But when I attempt,I get this error.!!!! (In Java)

    ./src/test/java/CalculatorTest.java:11: error: reference to assertEquals is ambiguous
    assertEquals("simple literal", d, Calculator.evaluate(d.toString()));
    ^
    both method assertEquals(String,double,double) in Assert and method assertEquals(String,Object,Object) in Assert match
    ./src/test/java/CalculatorTest.java:19: error: reference to assertEquals is ambiguous
    assertEquals("addition", new Double(a+b), Calculator.evaluate(a.intValue() + " + " + b.intValue()));
    ^
    both method assertEquals(String,double,double) in Assert and method assertEquals(String,Object,Object) in Assert match
    ./src/test/java/CalculatorTest.java:20: error: reference to assertEquals is ambiguous
    assertEquals("subtraction", new Double(a-b-c), Calculator.evaluate(a.intValue() + " - " + b.intValue() + " - " + c.intValue()));
    ^
    both method assertEquals(String,double,double) in Assert and method assertEquals(String,Object,Object) in Assert match
    Note: ./src/test/java/CalculatorTest.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    3 errors

    What is Happening and what should I do?

  • Default User Avatar
  • Default User Avatar
  • Default User Avatar

    You are welcome...

  • Default User Avatar

    Thanks for your suggestion.

  • Default User Avatar

    I didn't understand your code...
    You need to write comment in your code. So that all others can understand....