4 ms·
Programming is hard. Likely they didn't have a test for every possible date.
by josegonzalez 14y ago
Programming is hard. Likely they didn't have a test for every possible date.
- Derander 14y agoIt seems likely that the fact that this is the 1st of the year is related. This should be an obvious edge condition for testing.
- rimantas 14y agoSeems like calendars and time are really hard to get right. The missing December on Android is a good example of that too. http://arstechnica.com/gadgets/2012/11/december-conspicuously-missing-from-android-4-2s-people-app/ http://arstechnica.com/gadgets/2012/11/december-conspicuousl...
- andrewcooke 14y agoif 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]