Update of /cvsroot/opal/opal/src/external/quicktest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11266/src/external/quicktest
Modified Files:
quicktest.h
Log Message:
Implemented VelocityMotor and its unit test. Adjusted QuickTest. Added opal::normalizeDegrees().
Index: quicktest.h
===================================================================
RCS file: /cvsroot/opal/opal/src/external/quicktest/quicktest.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** quicktest.h 4 Dec 2005 03:27:11 -0000 1.7
--- quicktest.h 10 Dec 2005 05:18:35 -0000 1.8
***************
*** 549,553 ****
}
!
/// Checks whether the first parameter is less than the second.
--- 549,566 ----
}
! /// Checks whether the first parameter is within the given tolerance from
! /// the second parameter. This is useful for comparing floating point
! /// values.
! #define QT_CHECK_CLOSE_CUSTOM(value1, value2, tolerance)\
! {\
! if (abs((value1)-(value2)) > tolerance)\
! {\
! std::ostringstream oss;\
! oss << "value1 (" << (value1) << ") should be close to "\
! << "value2 (" << (value2) << ")";\
! recordFailure(_result, __FILE__, __LINE__, oss.str());\
! return;\
! }\
! }
/// Checks whether the first parameter is less than the second.
|