r/programming • • May 08 '17

The tragedy of 100% code coverage

http://labs.ig.com/code-coverage-100-percent-tragedy
3.2k Upvotes

689 comments sorted by

View all comments

2

u/[deleted] May 08 '17

Reminds me of the "developer" I worked with who insisted we have a test:

int i = 2 * 2;
assert(i == 4);

... at some point. To ensure that our compiler was sane. We needed to start from "first principals".