Vote++. What made it hit home for me was when I was unittesting some code where the unittests can't be completely deterministic and thus print out lots of crap for human interpretation. (When unittesting random number generators or stress testing a parallelization lib this can be a necessary evil IMHO). In these cases it's easy for a single assert failure to go unnoticed.
On the other hand, I guess we could start using enforce() instead of assert() in unittests if we prefer the old behavior. On Tue, Jul 13, 2010 at 10:57 AM, Andrei Alexandrescu <[email protected]>wrote: > Walter, Sean - I'm asking again, please bring unittests back where they > were. The recent change to assert() semantics has cause a net pessimization > of everyone's efficiency. > > Thanks, > > Andrei > > > On 07/13/2010 07:09 AM, Lars Tandle Kyllingstad wrote: > >> I'm using Linux too, and DMD 2.047. I've investigated this some more. >> Compilation of the std.container unittests succeeds, but the executable >> generated/posix/debug/unittest/std/container terminates with exit status >> 1. Its main() function never runs. >> >> -Lars >> >> >> On Mon, 2010-07-12 at 09:18 -0500, Andrei Alexandrescu wrote: >> >>> Can't reproduce on Linux. >>> >>> Andrei >>> >>> On 07/12/2010 08:55 AM, Lars Tandle Kyllingstad wrote: >>> >>>> When running 'make unittest' on the latest revision of Phobos, it just >>>> fails on/after std.container, without any sensible error message: >>>> >>>> Testing generated/posix/debug/unittest/std/container >>>> make[1]: *** [generated/posix/debug/unittest/std/container] Error 1 >>>> make: *** [unittest] Error 2 >>>> >>>> Anyone else seeing this? >>>> >>>> -Lars >>>> >>>> _______________________________________________ >>>> phobos mailing list >>>> [email protected] >>>> http://lists.puremagic.com/mailman/listinfo/phobos >>>> >>> >> >> _______________________________________________ >> phobos mailing list >> [email protected] >> http://lists.puremagic.com/mailman/listinfo/phobos >> > _______________________________________________ > phobos mailing list > [email protected] > http://lists.puremagic.com/mailman/listinfo/phobos >
_______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
