News for hackers. Stuff that matters.
Re:The tragedy of 100% code coverage (2016) by dagw on Tuesday May 09, 2017 @10:54AM (#14300523)
How is the algorithm supposed to know what the right thing to return is

Some times I have, for example, matlab code that I 'know' is right and want to verify that my C/Python/Julia... code does the same thing. So then I just call the matlab code, call the new code and check if they're the same.

Or I have a slow exact method and want to see if my faster approximation always gives an answer 'close enough' to the correct answer.

There are no comments on this comment yet.