Skip to content

log lhs and rhs when cr_assert_eq fails #527

Answered by Snaipe
xsh005 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use the new assertion API, which in this case would be cr_assert(eq(tag, lhs, rhs)). You can see more examples of this in the samples directory: https://github.com/Snaipe/Criterion/blob/bleeding/samples/asserts.c

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xsh005
Comment options

Answer selected by xsh005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants