std.unittests vote tally

Michel Fortin michel.fortin at michelf.com
Tue Feb 8 10:50:06 PST 2011


On 2011-02-08 12:26:23 -0500, Andrej Mitrovic 
<andrej.mitrovich at gmail.com> said:

> So in the most basic form assertThrown is used to check that our
> functions throw on bad (user) input,
> and assertNotThrown is used to check that our functions work with valid input?

Most functions are said to work whey they have the desired effect, not 
when they do not throw. To make sure a function works, you should call 
it and then check the return value and/or whatever the side effects 
should be.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list