/* * NICE-Core - efficient algebra and computer vision methods * - libfbasics - library of some basic tools * See file License for license information. */ #ifndef _CPPUNITEX_FBASICS_H #define _CPPUNITEX_FBASICS_H #ifdef NICE_USELIB_CPPUNIT #include #include /** * This is similar to CppUnit's built in CPPUNIT_ASSERT_MESSAGE, * but \c _STREAMABLE_ can be anything streamable to a std::stringstream * (including expressions like the following: * "test failed with error " << error << ".") */ #define CPPUNIT_ASSERT_STREAMABLE(_CONDITION_,_STREAMABLE_) \ if(!(_CONDITION_)) { \ std::stringstream _MSG_; \ _MSG_<<_STREAMABLE_<"test failed with error " << error << ".") * @deprecated Use CPPUNIT_ASSERT_STREAMABLE instead */ #define CPPUNIT_COND_STREAM(_COND_,_STREAM_) \ CPPUNIT_ASSERT_STREAMABLE(_COND_,_STREAM_) #endif // NICE_USELIB_CPPUNIT #endif // _CPPUNITEX_FBASICS_H