Github User Fetcher 1.0.0
C Application with Server and GUI
|
C++ / GNU C only! More...
Macros | |
#define | cr_assert_arr_eq_cmp(Actual, Expected, Size, Cmp, FormatString, ...) internal |
#define | cr_expect_arr_eq_cmp(Actual, Expected, Size, Cmp, FormatString, ...) internal |
#define | cr_assert_arr_neq_cmp(Actual, Unexpected, Size, Cmp, FormatString, ...) internal |
#define | cr_expect_arr_neq_cmp(Actual, Unexpected, Size, Cmp, FormatString, ...) internal |
#define | cr_assert_arr_lt_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
#define | cr_expect_arr_lt_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
#define | cr_assert_arr_leq_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
#define | cr_expect_arr_leq_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
#define | cr_assert_arr_gt_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
#define | cr_expect_arr_gt_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
#define | cr_assert_arr_geq_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
#define | cr_expect_arr_geq_cmp(Actual, Reference, Size, Cmp, FormatString, ...) internal |
C++ / GNU C only!
These macros are only available on C++ compilers.
#define cr_assert_arr_eq_cmp | ( | Actual, | |
Expected, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively equal to Expected (C++ / GNU C99 only)
Passes if Actual is comparatively equal to Expected. Otherwise the test is marked as failure and the execution of the function is aborted.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Expected | Expected array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_arr_geq_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively greater or equal to Reference (C++ / GNU C99 only)
Passes if Actual is comparatively greater or equal to Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_arr_gt_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively greater than Reference (C++ / GNU C99 only)
Passes if Actual is comparatively greater than Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_arr_leq_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively less or equal to Reference (C++ / GNU C99 only)
Passes if Actual is comparatively less or equal to Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_arr_lt_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively less than Reference (C++ / GNU C99 only)
Passes if Actual is comparatively less than Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_arr_neq_cmp | ( | Actual, | |
Unexpected, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is not comparatively equal to Unexpected (C++ / GNU C99 only)
Passes if Actual is not comparatively equal to Unexpected. Otherwise the test is marked as failure and the execution of the function is aborted.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Unexpected | Unexpected array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_arr_eq_cmp | ( | Actual, | |
Expected, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively equal to Expected (C++ / GNU C99 only)
Passes if Actual is comparatively equal to Expected. Otherwise the test is marked as failure but the execution will continue.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Expected | Expected array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_arr_geq_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively greater or equal to Reference (C++ / GNU C99 only)
Passes if Actual is comparatively greater or equal to Reference. Otherwise the test is marked as failure but the execution will continue.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_arr_gt_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively greater than Reference (C++ / GNU C99 only)
Passes if Actual is comparatively greater than Reference. Otherwise the test is marked as failure but the execution will continue.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_arr_leq_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively less or equal to Reference (C++ / GNU C99 only)
Passes if Actual is comparatively less or equal to Reference. Otherwise the test is marked as failure but the execution will continue.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_arr_lt_cmp | ( | Actual, | |
Reference, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is comparatively less than Reference (C++ / GNU C99 only)
Passes if Actual is comparatively less than Reference. Otherwise the test is marked as failure but the execution will continue.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Reference | Reference array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_arr_neq_cmp | ( | Actual, | |
Unexpected, | |||
Size, | |||
Cmp, | |||
FormatString, | |||
... ) internal |
Passes if Actual is not comparatively equal to Unexpected (C++ / GNU C99 only)
Passes if Actual is not comparatively equal to Unexpected. Otherwise the test is marked as failure but the execution will continue.
The macro takes a int (*comparator)(typeof(Actual) a, typeof(Expected) b)
function pointer, that returns -1, 0, or 1 when a
is respectively less, equal to, or greater than b
.
The optional string is printed on failure.
[in] | Actual | Array to test |
[in] | Unexpected | Unexpected array |
[in] | Size | Number of bytes to check |
[in] | Cmp | The comparator to use |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |