Re: [Cppunit-devel] Not equals test
Brought to you by:
blep
From: Duane M. <dua...@ma...> - 2001-09-30 03:07:00
|
--- At Sat, 29 Sep 2001 12:39:07 -0400, Steve M. Robbins wrote: >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 ); That's of course true, but I like the additional output from CPPUNIT_ASSERT_EQUAL. Its useful to know what was or was not equal. ..Duane |