Random test cases needed (Javascript version and perhaps also CoffeeScript version). It is generally good Kata practice to include random tests and helps prevent low-level cheats that may attempt to apss in fixed values in the correct order and pass all the tests.
Tests do not match type signature
Test.expect
should be replaced withTest.assertEquals
No random tests.
Instead of rounding to a number of significant figures, approxEquals should be used.
Objective-C Translation Kumited - please carefully review and approve :D
Random test cases needed (Javascript version and perhaps also CoffeeScript version). It is generally good Kata practice to include random tests and helps prevent low-level cheats that may attempt to apss in fixed values in the correct order and pass all the tests.
C# translation added