"isDroppable" range trait for slicing to end
Jonathan M Davis
jmdavisProg at gmx.com
Mon Oct 29 14:25:56 PDT 2012
On Monday, October 29, 2012 21:56:36 Jens Mueller wrote:
> I find it amazing how many bugs your unittests catch.
That's why they're there. It's far too easy to miss a corner case and end up
with mostly working but still buggy code (especially with date/time stuff). At
one point, I had a bug with B.C. years that ended in 99 that I only caught
when I made some of the tests more thorough. Being thorough seems to be the
only way to catch all those sorts of problems. And in spite of all of that,
I've still had a bug or two in the calculations when it was merged into Phobos
(long since fixed).
DST switches are particularly nasty though, particularly since Microsoft
absolutely sucks at time stuff, including the fact that it has a pitifully
small number of time zones, and most of them are wrong. Testing that stuff
across platforms is a major PITA, but I've tried very hard to guarantee that
the behavior is the same across systems. Unfortunately, it looks like I'm
going to have to spend some time figuring out how to hack around Windows 8's
stupidity though.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list