Hacker News new | ask | show | jobs
by GFK_of_xmaspast 3791 days ago
> And some projects don't have unit tests.

If a bug did not cause a unit test to fail, then it passed the unit test suite. (Less cryptically, an empty set is still a set)

1 comments

If we're getting that pedantic, the quote was "they passed unit tests". If the bug passed a 0-size set of unit tests, then it didn't actually pass any unit tests.
They didn't pass any, but they passed all.

In any case, Rich Hickey probably had more context for his words.

We should take this discussion and publish it in the world-famous (and extremely popular) "Journal of the empty set." You will find most of my work published there, too. http://pic.blog.plover.com/math/major-screwups-4/emptyset.pn...
Still though, 0% test coverage.
Division by zero..
How so?

10 (say) lines of code, 0 lines covered by tests, test coverage is 0/10. No division by zero, nothing undefined happening.