Re: [Cppunit-devel] Not equals test
Brought to you by:
blep
From: Steve M. R. <ste...@vi...> - 2001-09-29 16:39:11
|
On Fri, Sep 28, 2001 at 04:35:13PM -0700, Duane Murphy wrote: > I couldnt find an equivalent to CPPUNIT_ASSERT_NOT_EQUAL. That is > checking to make sure that some value was NOT some other value. I found > this useful in checking error conditions where you want to make sure that > the normal non-error condition is NOT returned. Pretty much any other > error is fine. > > If there is a technique for doing this, please let me know. In my case, I just use CPPUNIT_ASSERT( a != b ); -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 |