cleanass
Enhances assert, assert_eq and assert_ne with cleanup statement which runs on failure.
Usage
Import use cleanass::{assert_eq, assert_ne, assert}; and use them as you would the built-in
versions or pass in a closure which runs whenever an assertion fails.
use assert_ne;
Features
strict
- disables versions of the assertions that don't require a closure ensuring that you don't accidentally forget to add a cleanup function
- is on by default
LICENSE
MIT