Skip to content

Add assert_success() and assert_error() to check a function's return value #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

qdeslandes
Copy link
Contributor

Shorten assert_int_not_equal(0, xxx()) with assert_error(xxx()) and assert_int_equal(0, xxx()) with assert_success(xxx()).

Replace the longer assert_int_not_equal(0, xxx()).

Signed-off-by: Quentin Deslandes <[email protected]>
Replace the longer assert_int_equal(0, xxx()).

Signed-off-by: Quentin Deslandes <[email protected]>
@qdeslandes qdeslandes merged commit 26e138a into facebook:main Aug 16, 2024
13 checks passed
@qdeslandes qdeslandes deleted the custom_assert branch August 16, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants