| Crates.io | refute |
| lib.rs | refute |
| version | 1.0.1 |
| created_at | 2023-01-18 14:52:14.575154+00 |
| updated_at | 2023-01-18 15:08:06.848343+00 |
| description | Add a refute! macro(Elixir inspired). Essentially assert!(false). |
| homepage | |
| repository | https://github.com/Vagab/refute |
| max_upload_size | |
| id | 761730 |
| size | 1,567 |
Allows to use refute!(smth) macro instead of assert!(!smth)
#[test]
fn it_works() {
refute!(false);
}
#[test]
fn default_user_is_not_an_admin() {
refute!(User::default().admin)
}