Re: [Cppunit-devel] assert* macros, revisited
Brought to you by:
blep
From: Steve M. R. <ste...@vi...> - 2001-05-25 22:23:53
|
On Fri, May 25, 2001 at 02:56:10PM -0700, Townsend, Guy wrote: > Doesn't really matter to me one way or the other what the prefix is. Doesn't matter to me, either. However, it would be nice if all macros defined in CppUnit share the same prefix. As far as I can see, the only other macros in CppUnit are prefixed by CU_ (CU_TEST_SUITE and friends). > However, I don't see the point about assertEquals, as it is really > CppUnit::TestAssert::assertEquals(). No global namespace polution here. Ah. Sorry; I have been advocating a new macro "assertEqual", #define CU_assertEqual(expected,actual)\ (CppUnit::TestAssert::assertEquals ((expected),\ (actual),__LINE__,__FILE__)) and this is what I was referring to, not the member function of TestAssert. (Also, I'm suggesting that TestAssert::assertEquals() be a templated function). -Steve -- 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 |