Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 227 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 227 Bytes

Refute

Allows to use refute!(smth) macro instead of assert!(!smth)

Example

#[test]
fn it_works() {
    refute!(false);
}

#[test]
fn default_user_is_not_an_admin() {
    refute!(User::default().admin)
}