Github User Fetcher 1.0.0
C Application with Server and GUI
|
Macros | |
#define | cr_assert_float_eq(Actual, Expected, Epsilon, FormatString, ...) internal |
#define | cr_expect_float_eq(Actual, Expected, Epsilon, FormatString, ...) internal |
#define | cr_assert_float_neq(Actual, Unexpected, Epsilon, FormatString, ...) internal |
#define | cr_expect_float_neq(Actual, Unexpected, Epsilon, FormatString, ...) internal |
#define cr_assert_float_eq | ( | Actual, | |
Expected, | |||
Epsilon, | |||
FormatString, | |||
... ) internal |
Passes if Actual is equal to Expected with a tolerance of Epsilon
Passes if Actual is equal to Expected with a tolerance of Epsilon. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | Value to test |
[in] | Expected | Expected value |
[in] | Epsilon | Tolerance between Actual and Expected |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_float_neq | ( | Actual, | |
Unexpected, | |||
Epsilon, | |||
FormatString, | |||
... ) internal |
Passes if Actual is not equal to Unexpected with a tolerance of Epsilon
Passes if Actual is not equal to Unexpected with a tolerance of Epsilon. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | Value to test |
[in] | Unexpected | Unexpected value |
[in] | Epsilon | Tolerance between Actual and Expected |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_float_eq | ( | Actual, | |
Expected, | |||
Epsilon, | |||
FormatString, | |||
... ) internal |
Passes if Actual is equal to Expected with a tolerance of Epsilon
Passes if Actual is equal to Expected with a tolerance of Epsilon. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | Value to test |
[in] | Expected | Expected value |
[in] | Epsilon | Tolerance between Actual and Expected |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_float_neq | ( | Actual, | |
Unexpected, | |||
Epsilon, | |||
FormatString, | |||
... ) internal |
Passes if Actual is not equal to Unexpected with a tolerance of Epsilon
Passes if Actual is not equal to Unexpected with a tolerance of Epsilon. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | Value to test |
[in] | Unexpected | Unexpected value |
[in] | Epsilon | Tolerance between Actual and Expected |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |