Mention the language when reporting a problem, so it's easier to check. The problem is, actual and expected are flipped in Java and the expected value for -1 is 0, not -5.
Given an integer as input, can you round it to the next (meaning, "higher") 5?
Should be Given an integer as input, can you round it to the next (meaning, "higher") multiple of 5?
Done.
Fixed with this fork, please verify.
Actual and expected are flipped in Java.
Mention the language when reporting a problem, so it's easier to check. The problem is, actual and expected are flipped in Java and the expected value for -1 is 0, not -5.
The sample test is with 1, not -1.
Please see if this FAQ helps, and come back if still have problems.
Hi,
the final test are not working correctly, i get always the following error msg
"Input: -1 expected: <-5> but was: <0>"
but my return value is -5. The sample testcase with the same values was valid.
Could someone help me?