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

feat(assert): support callback for message #36

Merged

Conversation

psychedelicious
Copy link
Contributor

@psychedelicious psychedelicious commented Nov 8, 2024

A callback may be passed to assert's second arg instead of a string. The callback must return a string.

This is useful in when the message is expensive to create. With the callback message, we can defer the potentially costly message creation until it is actually needed.

Closes #34

A callback may be passed to `assert`'s second arg instead of a string. The callback must return a string.

This is useful in when the message is expensive to create. With the callback message, we can defer the potentially costly message creation until it is actually needed.

Closes garronej#34
@garronej
Copy link
Owner

garronej commented Nov 8, 2024

thank you very much

@garronej garronej merged commit 18576b8 into garronej:main Nov 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept callback for assert message
2 participants