|
CCUnit
2.1
A C Unit Testing Library
|
There are the macros for assertions by test functions. More...
Macros | |
| #define | CCUNIT_ASSERT(COND) ccunit_assert (__FILE__, __LINE__, COND, #COND) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_COND(TYP, CONDITION, EXPECT, ACTUAL) |
| Asserts that a condition is true. | |
Functions | |
| void | ccunit_assert (const char *file, unsigned int line, bool condition, const char *condstr) |
| Asserts that a condition is true. | |
Assert Macros | |
| #define | CCUNIT_ASSERT_TEST(TYP, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_INT(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (int, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_UINT(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (u_int, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_LONG(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (long, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_ULONG(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (u_long, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_SHORT(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (short, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_USHORT(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (u_short, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_DOUBLE(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (double, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_FLOAT(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (float, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_PTR(EXPECT, OP, ACTUAL) CCUNIT_ASSERT_TEST (_ccunit_ptr_t, EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_STR(EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_NSTR(EXPECT, OP, ACTUAL, N) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_CASE_STR(EXPECT, OP, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_CASE_NSTR(EXPECT, OP, ACTUAL, N) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_TEST_OBJ(EXPECT, OP, ACTUAL, TOSTR) |
| Asserts that a condition is true. | |
Assert Condition Macros | |
| #define | CCUNIT_ASSERT_NULL(ACTUAL) CCUNIT_ASSERT_TEST_PTR(NULL, ==, ACTUAL) |
| Asserts that a pointer is NULL. | |
| #define | CCUNIT_ASSERT_NOT_NULL(ACTUAL) CCUNIT_ASSERT_TEST_PTR(NULL, !=, ACTUAL) |
| Asserts that a pointer is not NULL. | |
| #define | CCUNIT_ASSERT_EQ_INT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_INT (EXPECT, ==, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_NE_INT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_INT (EXPECT, !=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LT_INT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_INT (EXPECT, <, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LE_INT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_INT (EXPECT, <=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GT_INT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_INT (EXPECT, >, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GE_INT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_INT (EXPECT, >=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_EQ_UINT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_UINT (EXPECT, ==, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_NE_UINT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_UINT (EXPECT, !=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LT_UINT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_UINT (EXPECT, <, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LE_UINT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_UINT (EXPECT, <=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GT_UINT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_UINT (EXPECT, >, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GE_UINT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_UINT (EXPECT, >=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_EQ_DOUBLE(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, ==, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_NE_DOUBLE(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, !=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LT_DOUBLE(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, <, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LE_DOUBLE(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, <=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GT_DOUBLE(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, >, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GE_DOUBLE(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, >=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_EQ_FLOAT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_FLOAT (EXPECT, ==, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_NE_FLOAT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_FLOAT (EXPECT, !=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LT_FLOAT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_FLOAT (EXPECT, <, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LE_FLOAT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_FLOAT (EXPECT, <=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GT_FLOAT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_FLOAT (EXPECT, >, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GE_FLOAT(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_FLOAT (EXPECT, >=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_EQ_STR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_STR (EXPECT, ==, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_NE_STR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_STR (EXPECT, !=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LT_STR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_STR (EXPECT, <, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LE_STR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_STR (EXPECT, <=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GT_STR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_STR (EXPECT, >, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GE_STR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_STR (EXPECT, >=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_EQ_PTR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_PTR (EXPECT, ==, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_NE_PTR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_PTR (EXPECT, !=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LT_PTR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_PTR (EXPECT, <, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_LE_PTR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_PTR (EXPECT, <=, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GT_PTR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_PTR (EXPECT, >, ACTUAL) |
| Asserts that a condition is true. | |
| #define | CCUNIT_ASSERT_GE_PTR(EXPECT, ACTUAL) CCUNIT_ASSERT_TEST_PTR (EXPECT, >=, ACTUAL) |
| Asserts that a condition is true. | |
There are the macros for assertions by test functions.
| #define CCUNIT_ASSERT | ( | COND | ) | ccunit_assert (__FILE__, __LINE__, COND, #COND) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| COND | assert condition. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_COND | ( | TYP, | |
| CONDITION, | |||
| EXPECT, | |||
| ACTUAL | |||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| TYP | type of expect/actual value. |
| CONDITION | test condition. |
| EXPECT | expect value. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_EQ_DOUBLE | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, ==, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_EQ_FLOAT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_FLOAT (EXPECT, ==, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_EQ_INT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_INT (EXPECT, ==, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_EQ_PTR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_PTR (EXPECT, ==, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_EQ_STR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_STR (EXPECT, ==, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_EQ_UINT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_UINT (EXPECT, ==, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GE_DOUBLE | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, >=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GE_FLOAT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_FLOAT (EXPECT, >=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GE_INT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_INT (EXPECT, >=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GE_PTR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_PTR (EXPECT, >=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GE_STR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_STR (EXPECT, >=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GE_UINT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_UINT (EXPECT, >=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GT_DOUBLE | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, >, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GT_FLOAT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_FLOAT (EXPECT, >, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GT_INT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_INT (EXPECT, >, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GT_PTR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_PTR (EXPECT, >, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GT_STR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_STR (EXPECT, >, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_GT_UINT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_UINT (EXPECT, >, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LE_DOUBLE | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, <=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LE_FLOAT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_FLOAT (EXPECT, <=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LE_INT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_INT (EXPECT, <=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LE_PTR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_PTR (EXPECT, <=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LE_STR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_STR (EXPECT, <=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LE_UINT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_UINT (EXPECT, <=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LT_DOUBLE | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, <, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LT_FLOAT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_FLOAT (EXPECT, <, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LT_INT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_INT (EXPECT, <, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LT_PTR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_PTR (EXPECT, <, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LT_STR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_STR (EXPECT, <, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_LT_UINT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_UINT (EXPECT, <, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NE_DOUBLE | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_DOUBLE (EXPECT, !=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NE_FLOAT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_FLOAT (EXPECT, !=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NE_INT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_INT (EXPECT, !=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NE_PTR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_PTR (EXPECT, !=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NE_STR | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_STR (EXPECT, !=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NE_UINT | ( | EXPECT, | |
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST_UINT (EXPECT, !=, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| EXPECT | expect value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NOT_NULL | ( | ACTUAL | ) | CCUNIT_ASSERT_TEST_PTR(NULL, !=, ACTUAL) |
Asserts that a pointer is not NULL.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_NULL | ( | ACTUAL | ) | CCUNIT_ASSERT_TEST_PTR(NULL, ==, ACTUAL) |
Asserts that a pointer is NULL.
If it isn't it longjmp with _ccunit_runTest_env.
| ACTUAL | actual pointer value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST | ( | TYP, | |
| EXPECT, | |||
| OP, | |||
| ACTUAL | |||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| TYP | type of expect/actual value. |
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_CASE_NSTR | ( | EXPECT, | |
| OP, | |||
| ACTUAL, | |||
| N | |||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| N | length to compare. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_CASE_STR | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_DOUBLE | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (double, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_FLOAT | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (float, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_INT | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (int, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_LONG | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (long, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_NSTR | ( | EXPECT, | |
| OP, | |||
| ACTUAL, | |||
| N | |||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| N | length to compare. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_OBJ | ( | EXPECT, | |
| OP, | |||
| ACTUAL, | |||
| TOSTR | |||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| TOSTR | pointer to function of converting to string. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_PTR | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (_ccunit_ptr_t, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_SHORT | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (short, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_STR | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_UINT | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (u_int, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_ULONG | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (u_long, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| #define CCUNIT_ASSERT_TEST_USHORT | ( | EXPECT, | |
| OP, | |||
| ACTUAL | |||
| ) | CCUNIT_ASSERT_TEST (u_short, EXPECT, OP, ACTUAL) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| EXPECT | expect value. |
| OP | test operator. |
| ACTUAL | actual value. |
| _ccunit_runTest_env | If condition is false. |
| void ccunit_assert | ( | const char * | file, |
| unsigned int | line, | ||
| bool | condition, | ||
| const char * | condstr | ||
| ) |
Asserts that a condition is true.
If it isn't it longjmp with _ccunit_runTest_env.
| file | file name. |
| line | line number. |
| condition | assert condition. |
| condstr | assert condition as string. |
| _ccunit_runTest_env | If condition is false. |
References _ccunit_runTest_env, and ccunit_newTestFailure().

|
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sat Jul 13 2013 15:09:16 for CCUnit by
1.8.1.1
|