Skip to content

Add should_fail annotation for unit tests #1113

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 1 commit into from
Nov 2, 2011

Conversation

mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented Nov 1, 2011

This allows test cases to assert that a function is expected to fail. Tests annotated with "should_fail" will succeed only if the function fails.

This allows test cases to assert that a function is expected to fail.
Tests annotated with "should_fail" will succeed only if the function
fails.
@brson
Copy link
Contributor

brson commented Nov 2, 2011

Beautiful. Please update the wiki page on unit testing https://github.com/graydon/rust/wiki/Unit-testing

@brson brson merged commit 76077a9 into rust-lang:master Nov 2, 2011
coastalwhite pushed a commit to coastalwhite/rust that referenced this pull request Aug 5, 2023
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
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.

2 participants