- Timestamp:
- Jan 16, 2008, 9:17:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CuTest.c
r137 r158 242 242 { 243 243 char buf[STRING_MAX]; 244 if (fabs(expected - actual) <= delta) return; 244 #define SH_FABS(a) (((a) < 0) ? -(a) : (a)) 245 if (SH_FABS(expected - actual) <= delta) return; 245 246 sprintf(buf, "expected <%lf> but was <%lf>", expected, actual); 246 247 CuFail_Line(tc, file, line, message, buf);
Note:
See TracChangeset
for help on using the changeset viewer.