Created
June 16, 2016 15:17
-
-
Save carols10cents/1cc72d3fe289780c7444d476b2d09681 to your computer and use it in GitHub Desktop.
How to use assert_ne
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[macro_use] | |
| extern crate assert_ne; | |
| #[cfg(test)] | |
| mod tests { | |
| #[test] | |
| fn you_can_assert_ne() { | |
| let before = 5; | |
| let after = before + 12; | |
| assert_ne!(before, after); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment