[Insight-developers] ITK Regression tests & 'expected' exceptions

Gert Wollny gert at die.upm.es
Tue Feb 9 13:50:31 EST 2010


Am Dienstag, den 09.02.2010, 12:48 -0500 schrieb Luis Ibanez:
> BTW,
> 
> We have added a set of convenience macros in the file
> 
>     Insight/Testing/Code/Review/itkTestingMacros.h
> 
> a couple of which are intended to make easier to exercise
> exceptions code.
> 
> They are:
> 
>     TRY_EXPECT_EXCEPTION( ... command ... )
It would probably be a good idea to add which expection to expect, in
case something else goes wrong - E.g. like the BOOST_CHECK_THROW macro
does: 
http://www.boost.org/doc/libs/1_35_0/libs/test/doc/components/test_tools/reference/BOOST_CHECK_THROW.html

best 

Gert




More information about the Insight-developers mailing list