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.
Expected/actual being flipped is already fixed some time ago.
desciption updated.
Hi.
The Kata has the requirement : "You need to round the answer upto 2 decimal places and return it as String."
Because of that, 2.4 is not the same as 2.40 (mathematically it is the same value).
The Test expects two decimal places like in the example for 0 - the expectation is "0.00" and not "0" or "0.0".
same here
same
Hi,
I am getting this when I run my code. It delivers the right answer, but somehow the tests do expect something different. Does anyone know what is going wrong or how to resolve this?
Thank you.
test5(NthSeriesTest)
✘ expected:< 2.4 [0] > but was:< 2.4 [] >
test6(NthSeriesTest)
✘ expected:< 2.5 [0] > but was:< 2.5 [] >
The console output says: Expected 15, but was 6.
I tested it in Eclipse and my function gives back 6.
Therefore, I thought that the result expected from the test case is wrong.
It's not asking for 15; it's telling you it should be 6 not 15.
Test case is looking for 15, but instruction states to repeat the process until you get a one digit integer (which would be 6).