Re: [Cppunit-devel] macros and templates
Brought to you by:
blep
From: Steve M. R. <ste...@vi...> - 2001-06-05 14:04:40
|
On Tue, Jun 05, 2001 at 01:16:19AM +0200, Bastiaan Bakker wrote: > "Steve M. Robbins" wrote: > > > I've added the generic TestAssert::assertEquals() method, > > along with the new macros CPPUNIT_ASSERT, CPPUNIT_ASSERT_EQUAL, > > and CPPUNIT_ASSERT_DOUBLES_EQUAL. The old naked assert and > > friends are available by editing <cppunit/config.h>. > > > > At the moment, the assertion_traits class requires string streams, > > which does not exist in GCC before version 2.95.3. If you have any > > bright ideas about workarounds for missing <sstream>, I'm all ears. > > In the log4cpp library we encountered the same problem. There we use but > ostringstream, I guess in CppUnit that's all we need too. Ah, that's the hint I needed, thanks! The next chance I get, I'll work out a version of assertion_traits that uses an ostringstream, if HAVE_SSTREAM is not defined. -S -- by Rocket to the Moon, by Airplane to the Rocket, by Taxi to the Airport, by Frontdoor to the Taxi, by throwing back the blanket and laying down the legs ... - They Might Be Giants |