Hacker News new | ask | show | jobs
by tirutiru 247 days ago
I wonder how many completely u related applications have that interval check logic coded up somewhere. I'm pretty sure I wrote one for my work codebase. Would I bet my life that the < and <=s are correct? Nope.
1 comments

That's what unit tests are for.
or better yet, property tests