Github User Fetcher 1.0.0
C Application with Server and GUI
|
Macros | |
#define | cr_assert_str_empty(Value, FormatString, ...) internal |
#define | cr_expect_str_empty(Value, FormatString, ...) internal |
#define | cr_assert_str_not_empty(Value, FormatString, ...) internal |
#define | cr_expect_str_not_empty(Value, FormatString, ...) internal |
#define | cr_assert_str_eq(Actual, Expected, FormatString, ...) internal |
#define | cr_expect_str_eq(Actual, Expected, FormatString, ...) internal |
#define | cr_assert_str_neq(Actual, Unexpected, FormatString, ...) internal |
#define | cr_expect_str_neq(Actual, Unexpected, FormatString, ...) internal |
#define | cr_assert_str_lt(Actual, Reference, FormatString, ...) internal |
#define | cr_expect_str_lt(Actual, Reference, FormatString, ...) internal |
#define | cr_assert_str_leq(Actual, Reference, FormatString, ...) internal |
#define | cr_expect_str_leq(Actual, Reference, FormatString, ...) internal |
#define | cr_assert_str_gt(Actual, Reference, FormatString, ...) internal |
#define | cr_expect_str_gt(Actual, Reference, FormatString, ...) internal |
#define | cr_assert_str_geq(Actual, Reference, FormatString, ...) internal |
#define | cr_expect_str_geq(Actual, Reference, FormatString, ...) internal |
std::string
in C++, with some exceptions – for std::string
, you should use regular comparison assersions. #define cr_assert_str_empty | ( | Value, | |
FormatString, | |||
... ) internal |
Passes if Value is an empty string
Passes if Value is an empty string. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Value | String to test |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_str_eq | ( | Actual, | |
Expected, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically equal to Expected
Passes if Actual is lexicographically equal to Expected. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Expected | Expected String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
Definition at line 618 of file assert.h.
Referenced by Test().
#define cr_assert_str_geq | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically greater or equal to Reference
Passes if Actual is lexicographically greater or equal to Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_str_gt | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically greater than Reference
Passes if Actual is lexicographically greater than Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_str_leq | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically less or equal to Reference
Passes if Actual is lexicographically less or equal to Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_str_lt | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically less than Reference
Passes if Actual is lexicographically less than Reference. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_str_neq | ( | Actual, | |
Unexpected, | |||
FormatString, | |||
... ) internal |
Passes if Actual is not lexicographically equal to Unexpected
Passes if Actual is not lexicographically equal to Unexpected. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Unexpected | Unexpected String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_assert_str_not_empty | ( | Value, | |
FormatString, | |||
... ) internal |
Passes if Value is not an empty string
Passes if Value is not an empty string. Otherwise the test is marked as failure and the execution of the function is aborted.
The optional string is printed on failure.
[in] | Value | String to test |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_empty | ( | Value, | |
FormatString, | |||
... ) internal |
Passes if Value is an empty string
Passes if Value is an empty string. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Value | String to test |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_eq | ( | Actual, | |
Expected, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically equal to Expected
Passes if Actual is lexicographically equal to Expected. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Expected | Expected String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_geq | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically greater or equal to Reference
Passes if Actual is lexicographically greater or equal to Reference. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_gt | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically greater than Reference
Passes if Actual is lexicographically greater than Reference. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_leq | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically less or equal to Reference
Passes if Actual is lexicographically less or equal to Reference. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_lt | ( | Actual, | |
Reference, | |||
FormatString, | |||
... ) internal |
Passes if Actual is lexicographically less than Reference
Passes if Actual is lexicographically less than Reference. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Reference | Reference String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_neq | ( | Actual, | |
Unexpected, | |||
FormatString, | |||
... ) internal |
Passes if Actual is not lexicographically equal to Unexpected
Passes if Actual is not lexicographically equal to Unexpected. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Actual | String to test |
[in] | Unexpected | Unexpected String |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |
#define cr_expect_str_not_empty | ( | Value, | |
FormatString, | |||
... ) internal |
Passes if Value is not an empty string
Passes if Value is not an empty string. Otherwise the test is marked as failure but the execution will continue.
The optional string is printed on failure.
[in] | Value | String to test |
[in] | FormatString | (optional) printf-like format string |
[in] | ... | (optional) format string parameters |