Ad
  • Custom User Avatar

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

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

  • Custom User Avatar
  • Custom User Avatar

    Thanks for your suggestion.