[Issue 4653] More unit test functions should be added - like assertEqual() and assertNotEqual()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 25 15:16:31 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=4653



--- Comment #9 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-02-25 15:16:30 PST ---
Cute. assertPred was the evolution of this, and it did a lot of nice stuff
(though it wouldn't surprise me it all if it could be improved), but it got
shot down as far as Phobos goes. std.datetime still uses a version of it
internally, but I'm slowing phasing it out. The problem is the template
overhead. I'm pretty sure that it's one of reasons (possibly _the_ reason) why
Walter can't build std.datetime's unit tests (due to running out of memory) on
his older FreeBSD machine (which he still complains about from time to time).

I still like it, but it _does_ instantiate a lot of templates. Ultimately, I
think that most people just use assert at this point and deal with it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list