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 descriptive messages to all assertions in library code for better testing and debugging #20

Open
akonior opened this issue Mar 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@akonior
Copy link
Contributor

akonior commented Mar 11, 2024

Suggestion: It would greatly enhance the developer experience and debuggability if descriptive messages could be added to all assertions within the library code. I our project that depends on noir-trie-proofs we have a lot of failure tests and we would like to check that specific assertion was thrown using:

#[test(should_fail_with = "<the reason for failure>")]
@ax0 ax0 added the enhancement New feature or request label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants