On 2011-02-08 12:26:23 -0500, Andrej Mitrovic <[email protected]> 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
[email protected]
http://michelf.com/

Reply via email to