News for hackers. Stuff that matters.
Re:The tragedy of 100% code coverage (2016) by mannykannot on Wednesday May 10, 2017 @06:49PM (#14312444)
Counter-example:

  while ( j < JMAX) {
     i = callback(j);
     if( i >= FINAL) break;
     ...
If, in the specific circumstances of this use, callback(j) will always equal FINAL before it exceeds it, a test for equality here will not cause the program to behave differently.

The fallacy of your argument is that == is not an assertion that its arguments should always be equal; it is a test of whether they are at some specific point in the algorithm.

There are no comments on this comment yet.