Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This is my first kata.(experimental..)
Don't take this kata seriously.
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?
great job.
Thanks for your suggestion.