Skip to content
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

Add an assert_empty! macro #451

Merged
merged 2 commits into from
Jul 6, 2022
Merged

Add an assert_empty! macro #451

merged 2 commits into from
Jul 6, 2022

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Jul 6, 2022

For improved UX over using assert! with str::is_empty, since if the assertion fails, the actual value is printed.

This is useful in the case of asserting that say stderr is empty.

Fixes #449.
GUS-W-11389173.

For improved UX over using `assert!` with `str::is_empty`,
since if the assertion fails, the actual value is printed.

This is useful in the case of asserting that say `stderr` is empty.

Fixes #449.
@edmorley edmorley added enhancement New feature or request libcnb-test labels Jul 6, 2022
@edmorley edmorley self-assigned this Jul 6, 2022
@edmorley edmorley marked this pull request as ready for review July 6, 2022 10:17
@edmorley edmorley requested a review from a team as a code owner July 6, 2022 10:17
@edmorley edmorley merged commit eec37ff into main Jul 6, 2022
@edmorley edmorley deleted the edmorley/assert-empty branch July 6, 2022 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request libcnb-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an assert_empty! macro
3 participants