refute

Crates.iorefute
lib.rsrefute
version1.0.1
sourcesrc
created_at2023-01-18 14:52:14.575154
updated_at2023-01-18 15:08:06.848343
descriptionAdd a refute! macro(Elixir inspired). Essentially assert!(false).
homepage
repositoryhttps://github.com/Vagab/refute
max_upload_size
id761730
size1,567
barseek (Vagab)

documentation

README

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)
}
Commit count: 7

cargo fmt