I too am seeing the '04:25:00' vs '04:24:59' issue, which is not good because I'll have to find out how to introduce rounding error to make it pass. I think there should be some tolerance any time we do floating point calculations because the order in which we do the math can affect the result.
Are there any errors in the test cases? I'm getting a failure on the one for 180 degrees, and as far as I can tell (with the other test cases and other websites) my code is working correctly.
Also, could the test cases be updated to show the expected output when failed?
Haskell fork
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
No random tests.
What does it mean by "Must reject an unknown player: True should equal False"
Do the playeres have to be sequential from "A" to "Z" or is there characters other than alpha tested for and those should be rejected?
You should increase the test cases.otherwise nice kata :)
The rounding issue below still exists in the random tests.
This comment is hidden because it contains spoiler information about the solution
I too am seeing the '04:25:00' vs '04:24:59' issue, which is not good because I'll have to find out how to introduce rounding error to make it pass. I think there should be some tolerance any time we do floating point calculations because the order in which we do the math can affect the result.
Maybe avoid decimal numbers as angles: sources of errors in roundings.
Are there any errors in the test cases? I'm getting a failure on the one for 180 degrees, and as far as I can tell (with the other test cases and other websites) my code is working correctly.
Also, could the test cases be updated to show the expected output when failed?