Functions | |
| static void | test (int expression, const char *message, const char *function, const char *file, unsigned line) |
| Evaluate an expression and update an internal counter if it fails. | |
| void | irplib_test_macro (int expression, const char *expr_string, const char *function, const char *file, unsigned line) |
| Test a given expression. | |
| void | irplib_test_eq_macro (int first, const char *first_string, int second, const char *second_string, const char *function, const char *file, unsigned line) |
| Test if two integer expressions are equal. | |
| void | irplib_test_eq_string_macro (const char *first, const char *first_string, const char *second, const char *second_string, const char *function, const char *file, unsigned line) |
| Test if two strings are equal. | |
| void | irplib_test_abs_macro (double first, const char *first_string, double second, const char *second_string, double tolerance, const char *tolerance_string, const char *function, const char *file, unsigned line) |
| Test if two numerical expressions are within a given (absolute) tolerance. | |
| void | irplib_test_rel_macro (double first, const char *first_string, double second, const char *second_string, double tolerance, const char *tolerance_string, const char *function, const char *file, unsigned line) |
| Test if two numerical expressions are within a given relative tolerance. | |
| void | irplib_test_init_macro (const char *file) |
| Initialize CPL messaging, IRPLIB. | |
| unsigned | irplib_test_end_macro (const char *function, const char *file, unsigned line) |
| Perform the final checks and return the number of errors. | |
Variables | |
| static unsigned long | irplib_test_nfail = 0 |
|
||||||||||||||||||||||||
|
Evaluate an expression and update an internal counter if it fails.
Definition at line 65 of file irplib_test.c. References irplib_sprintf(), and irplib_test_nfail. |
|
||||||||||||||||||||||||
|
Test a given expression.
Definition at line 114 of file irplib_test.c. References irplib_sprintf(), and test. Referenced by irplib_test_end_macro(). |
|
||||||||||||||||||||||||||||||||
|
Test if two integer expressions are equal.
Definition at line 141 of file irplib_test.c. References irplib_sprintf(), and test. Referenced by irplib_test_end_macro(). |
|
||||||||||||||||||||||||||||||||
|
Test if two strings are equal.
Definition at line 172 of file irplib_test.c. References irplib_sprintf(), and test. |
|
||||||||||||||||||||||||||||||||||||||||
|
Test if two numerical expressions are within a given (absolute) tolerance.
Definition at line 210 of file irplib_test.c. References irplib_sprintf(), and test. |
|
||||||||||||||||||||||||||||||||||||||||
|
Test if two numerical expressions are within a given relative tolerance.
Definition at line 247 of file irplib_test.c. References irplib_sprintf(), and test. |
|
|
Initialize CPL messaging, IRPLIB.
Definition at line 292 of file irplib_test.c. References irplib_reset(). |
|
||||||||||||||||
|
Perform the final checks and return the number of errors.
Definition at line 382 of file irplib_test.c. References irplib_test_eq_macro(), irplib_test_macro(), and irplib_test_nfail. |
|
|
The number of failures Definition at line 52 of file irplib_test.c. Referenced by irplib_test_end_macro(), and test(). |
1.4.6