3 ms·
if you're writing tests, you should aim for corner cases. for date-based applications that would include the first and last days in the year, leap years, etc.
by andrewcooke 14y ago
if you're writing tests, you should aim for corner cases. for date-based applications that would include the first and last days in the year, leap years, etc.
programming can be a bit less hard if you learn to do it right.
- roc 14y agoGood luck enumerating all the edge-case tests for date functions every single time you need a date.
- deleted 14y ago[deleted]
- deleted 14y ago[deleted]