Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
Common binary assertions

Macros

#define cr_assert_eq(Actual, Expected, FormatString, ...)   internal
 
#define cr_expect_eq(Actual, Expected, FormatString, ...)   internal
 
#define cr_assert_neq(Actual, Unexpected, FormatString, ...)   internal
 
#define cr_expect_neq(Actual, Unexpected, FormatString, ...)   internal
 
#define cr_assert_lt(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_lt(Actual, Reference, FormatString, ...)   internal
 
#define cr_assert_leq(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_leq(Actual, Reference, FormatString, ...)   internal
 
#define cr_assert_gt(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_gt(Actual, Reference, FormatString, ...)   internal
 
#define cr_assert_geq(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_geq(Actual, Reference, FormatString, ...)   internal
 

Detailed Description

Macro Definition Documentation

◆ cr_assert_eq

#define cr_assert_eq ( Actual,
Expected,
FormatString,
... )   internal

Passes if Actual is equal to Expected

Passes if Actual is 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.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ExpectedExpected value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 161 of file assert.h.

◆ cr_assert_geq

#define cr_assert_geq ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is greater or equal to Reference

Passes if Actual is 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.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 346 of file assert.h.

◆ cr_assert_gt

#define cr_assert_gt ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is greater than Reference

Passes if Actual is 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.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 309 of file assert.h.

◆ cr_assert_leq

#define cr_assert_leq ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is less or equal to Reference

Passes if Actual is 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.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 272 of file assert.h.

◆ cr_assert_lt

#define cr_assert_lt ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is less than Reference

Passes if Actual is 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.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 235 of file assert.h.

◆ cr_assert_neq

#define cr_assert_neq ( Actual,
Unexpected,
FormatString,
... )   internal

Passes if Actual is not equal to Unexpected

Passes if Actual is not 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.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]UnexpectedUnexpected Value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 198 of file assert.h.

◆ cr_expect_eq

#define cr_expect_eq ( Actual,
Expected,
FormatString,
... )   internal

Passes if Actual is equal to Expected

Passes if Actual is equal to Expected. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ExpectedExpected value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 179 of file assert.h.

◆ cr_expect_geq

#define cr_expect_geq ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is greater or equal to Reference

Passes if Actual is greater or equal to Reference. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 364 of file assert.h.

◆ cr_expect_gt

#define cr_expect_gt ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is greater than Reference

Passes if Actual is greater than Reference. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 327 of file assert.h.

◆ cr_expect_leq

#define cr_expect_leq ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is less or equal to Reference

Passes if Actual is less or equal to Reference. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 290 of file assert.h.

◆ cr_expect_lt

#define cr_expect_lt ( Actual,
Reference,
FormatString,
... )   internal

Passes if Actual is less than Reference

Passes if Actual is less than Reference. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]ReferenceReference value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 253 of file assert.h.

◆ cr_expect_neq

#define cr_expect_neq ( Actual,
Unexpected,
FormatString,
... )   internal

Passes if Actual is not equal to Unexpected

Passes if Actual is not equal to Unexpected. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Note
Compatible with C++ operator overloading.
Parameters
[in]ActualValue to test
[in]UnexpectedUnexpected Value
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 216 of file assert.h.