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

Implement Testable for () #80

Merged
merged 2 commits into from
May 19, 2015

Conversation

milibopp
Copy link
Contributor

This allows for some useful patterns, such as

  • testing functions without a return value that only fail by panicking,
  • testing functions that return a Result<(), ...> that only fail by returning an error.

(This is based on top of #79.)

It is sufficient to constrain the error type to be `Debug + Send + 'static`
instead of limiting it to `String` only.
This allows for some useful patterns, such as

- testing functions without a return value that only fail by panicking,
- testing functions that return a `Result<(), ...>` that only fail by returning
  an error.
BurntSushi added a commit that referenced this pull request May 19, 2015
@BurntSushi BurntSushi merged commit d282c81 into BurntSushi:master May 19, 2015
@BurntSushi
Copy link
Owner

Good idea! Thanks! :-)

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.

None yet

2 participants