Go to the source code of this file.
◆ QA_ASSERT_CLOSE
#define QA_ASSERT_CLOSE |
( |
| message, |
|
|
| expected, |
|
|
| actual, |
|
|
| tolerance ) |
Value: if (fabs((expected)-(actual))>(tolerance)) \
{ \
printf( "%s:%d - ERROR - %s, expected %f, got %f, tol=%f\n", __FILE__, __LINE__, message, ((double)(expected)), ((double)(actual)), ((double)(tolerance)) ); \
goto error; \
} \
Referenced by TestSampleFormatConversion().
◆ QA_ASSERT_CLOSE_INT
#define QA_ASSERT_CLOSE_INT |
( |
| message, |
|
|
| expected, |
|
|
| actual, |
|
|
| tolerance ) |
Value: if (abs((expected)-(actual))>(tolerance)) \
{ \
printf( "%s:%d - ERROR - %s, expected %d, got %d, tol=%d\n", __FILE__, __LINE__, message, ((int)(expected)), ((int)(actual)), ((int)(tolerance)) ); \
goto error; \
} \
Referenced by TestSampleFormatConversion().
◆ QA_ASSERT_EQUALS
#define QA_ASSERT_EQUALS |
( |
| message, |
|
|
| expected, |
|
|
| actual ) |
◆ QA_ASSERT_TRUE
#define QA_ASSERT_TRUE |
( |
| message, |
|
|
| flag ) |
◆ g_testsFailed
◆ g_testsPassed
Accumulate counts for how many tests pass or fail.
Referenced by main().