Skip to content

Commit

Permalink
Add documentation for ck_assert_pstr_* macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Dotsenko Andrey committed Dec 12, 2016
1 parent 91662c6 commit 7bfaba6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/check.texi
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,16 @@ operator is again indicated by last two letters of the function name.
of the character string @code{a} is less than that of @code{b}.
If a NULL pointer would be passed to any comparison macro than check would fail.

@item ck_assert_pstr_eq
@itemx ck_assert_pstr_ne

Similar to @code{ck_assert_str_*} macros, but able to check undefined strings.
If a NULL pointer would be passed to a comparison macro it would mean that
a string is undefined. If both strings are undefined @code{ck_assert_pstr_eq}
would pass, but @code{ck_assert_pstr_ne} would fail. If only one of strings is
undefined @code{ck_assert_pstr_eq} macro would fail and @code{ck_assert_pstr_ne}
would pass.

@item ck_assert_ptr_eq
@itemx ck_assert_ptr_ne

Expand Down

0 comments on commit 7bfaba6

Please sign in to comment.