Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
Wide String Assertions

Macros

#define cr_assert_wcs_empty(Value, FormatString, ...)   internal
 
#define cr_expect_wcs_empty(Value, FormatString, ...)   internal
 
#define cr_assert_wcs_not_empty(Value, FormatString, ...)   internal
 
#define cr_expect_wcs_not_empty(Value, FormatString, ...)   internal
 
#define cr_assert_wcs_eq(Actual, Expected, FormatString, ...)   internal
 
#define cr_expect_wcs_eq(Actual, Expected, FormatString, ...)   internal
 
#define cr_assert_wcs_neq(Actual, Unexpected, FormatString, ...)   internal
 
#define cr_expect_wcs_neq(Actual, Unexpected, FormatString, ...)   internal
 
#define cr_assert_wcs_lt(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_wcs_lt(Actual, Reference, FormatString, ...)   internal
 
#define cr_assert_wcs_leq(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_wcs_leq(Actual, Reference, FormatString, ...)   internal
 
#define cr_assert_wcs_gt(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_wcs_gt(Actual, Reference, FormatString, ...)   internal
 
#define cr_assert_wcs_geq(Actual, Reference, FormatString, ...)   internal
 
#define cr_expect_wcs_geq(Actual, Reference, FormatString, ...)   internal
 

Detailed Description

Note
These macros are meant to deal with native wide character strings, i.e. wchar_t arrays. Most of them won't work on std::wstring in C++, with some exceptions – for std::wstring, you should use regular comparison assertions.

Macro Definition Documentation

◆ cr_assert_wcs_empty

#define cr_assert_wcs_empty ( Value,
FormatString,
... )   internal

Passes if Value is an empty wide string

Passes if Value is an empty wide string. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional (non-wide) string is printed on failure.

Note
Also works on std::wstring.
Parameters
[in]ValueWide string to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 831 of file assert.h.

◆ cr_assert_wcs_eq

#define cr_assert_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ExpectedExpected wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 900 of file assert.h.

◆ cr_assert_wcs_geq

#define cr_assert_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 1065 of file assert.h.

◆ cr_assert_wcs_gt

#define cr_assert_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 1032 of file assert.h.

◆ cr_assert_wcs_leq

#define cr_assert_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 999 of file assert.h.

◆ cr_assert_wcs_lt

#define cr_assert_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 966 of file assert.h.

◆ cr_assert_wcs_neq

#define cr_assert_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]UnexpectedUnexpected wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 933 of file assert.h.

◆ cr_assert_wcs_not_empty

#define cr_assert_wcs_not_empty ( Value,
FormatString,
... )   internal

Passes if Value is not an empty wide string

Passes if Value is not an empty wide string. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional (non-wide) string is printed on failure.

Note
Also works on std::string.
Parameters
[in]ValueWide string to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 866 of file assert.h.

◆ cr_expect_wcs_empty

#define cr_expect_wcs_empty ( Value,
FormatString,
... )   internal

Passes if Value is an empty wide string

Passes if Value is an empty wide string. Otherwise the test is marked as failure but the execution will continue.

The optional (non-wide) string is printed on failure.

Note
Also works on std::wstring.
Parameters
[in]ValueWide string to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 848 of file assert.h.

◆ cr_expect_wcs_eq

#define cr_expect_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ExpectedExpected wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 916 of file assert.h.

◆ cr_expect_wcs_geq

#define cr_expect_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 1081 of file assert.h.

◆ cr_expect_wcs_gt

#define cr_expect_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 1048 of file assert.h.

◆ cr_expect_wcs_leq

#define cr_expect_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 1015 of file assert.h.

◆ cr_expect_wcs_lt

#define cr_expect_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]ReferenceReference wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 982 of file assert.h.

◆ cr_expect_wcs_neq

#define cr_expect_wcs_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 (non-wide) string is printed on failure.

Parameters
[in]ActualWide string to test
[in]UnexpectedUnexpected wide string
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 949 of file assert.h.

◆ cr_expect_wcs_not_empty

#define cr_expect_wcs_not_empty ( Value,
FormatString,
... )   internal

Passes if Value is not an empty wide string

Passes if Value is not an empty wide string. Otherwise the test is marked as failure but the execution will continue.

The optional (non-wide) string is printed on failure.

Note
Also works on std::string.
Parameters
[in]ValueWide string to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 883 of file assert.h.