You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here what I am doing is call rb_is_black() and assert it should be true. but in this case, compile error evoked. The reason is clear that we paste the whole condition as a string together with CRI_ASSERT_TEST_SPECIFIER_, and ! is not a valid token.
An ugly workaround is:
cr_assert(
eq(i32, true, rb_is_black(&(node2->rb))),
"Root node should be black"
);
which makes it a comparison between my function and the true.
The text was updated successfully, but these errors were encountered:
In
cr_assert()
, criterion paste condition as a string directly, preventing use a simple bool expression:Here what I am doing is call
rb_is_black()
and assert it should be true. but in this case, compile error evoked. The reason is clear that we paste the whole condition as a string together withCRI_ASSERT_TEST_SPECIFIER_
, and!
is not a valid token.An ugly workaround is:
which makes it a comparison between my function and the
true
.The text was updated successfully, but these errors were encountered: