Hacker News new | ask | show | jobs
by nly 1698 days ago
Unit test cases should be explicit. For determining if his algorithm is correct he could implement it 2 completely different ways and do bitwise fuzz testing to try and find cases where the output differs.
1 comments

Or (if he did it with floats), tested it with all 4 billion floats. [1]

[1]: https://randomascii.wordpress.com/2014/01/27/theres-only-fou...