On 2 Jan 2002, Alexandre Julliard wrote:
Francois Gouget fgouget@free.fr writes:
I am not sure about using asserts. In the case where one calls the same API ten times with different parameters, it would probably be better to still do all ten tests even if the second call fails. This way the developper debugging things immediately knows if just one aspect failed or if its everything. If we call assert as soon as one item fails we don't have the information of whether the rest still works or not.
Sure, it doesn't have to be the C library version of assert, it can be an equivalent that continues execution and only sets the exit status at the end.
Kind of like my proposed 'test_failed(message)' function :-) I agree then.
-- Francois Gouget fgouget@free.fr http://fgouget.free.fr/ Avoid the Gates of Hell - use Linux.