Update of /cvsroot/cppunit/cppunit2/include/cpput
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14537/include/cpput
Modified Files:
assert.h
Log Message:
* added CPPUT_ASSERT_DOUBLES_EQUAL and CPPUT_CHECK_DOUBLES_EQUAL
Index: assert.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpput/assert.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** assert.h 10 Aug 2005 21:34:29 -0000 1.12
--- assert.h 6 Sep 2005 07:17:36 -0000 1.13
***************
*** 109,112 ****
--- 109,117 ----
}
+ void CPPUT_API checkDoubleEquals( double expected,
+ double actual,
+ double tolerance,
+ const Message &message = Message() );
+
} // namespace CppUT
***************
*** 177,180 ****
--- 182,193 ----
::CppUT::checkNotEquals
+ # define CPPUT_ASSERT_DOUBLE_EQUAL \
+ CPPUT_BEGIN_ASSERTION_MACRO() \
+ ::CppUT::checkDoubleEquals
+
+ # define CPPUT_CHECK_DOUBLE_EQUAL \
+ CPPUT_BEGIN_CHECKING_MACRO() \
+ ::CppUT::checkDoubleEquals
+
# define _CPPUT_ASSERT_THROW_IMPL( assertionType, expression, ExceptionType ) \
do { \
|