Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great work! However, an additional testing section would be nice (right below the implementation section).

That section should provide two or three lists of example input values, and the expected output value (up to some accuracy).

As the author notes, although this formula looks pretty simple, you can make a lot of numerical mistakes when implementing it. A test suite would help implementors to catch those mistakes early.



Assuming the Julia implementation is correct, you could write tests based on output from that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: