should-be

Crates.ioshould-be
lib.rsshould-be
version0.1.0
sourcesrc
created_at2023-01-04 23:32:33.896663
updated_at2023-01-04 23:32:33.896663
descriptionPostfix assertions of equality
homepage
repository
max_upload_size
id751208
size3,091
Aatif Syed (aatifsyed)

documentation

README

should-be

Postfix assertions of equality

use should_be::ShouldBe; // Import the trait
let yaks_shaved = 0;
yaks_shaved.should_be(0); // passes
yaks_shaved.should_be(1); // panics
// you can provide a panic message using a tuple.
yaks_shaved.should_be((1, "why haven't you shaved?"))
Commit count: 0

cargo fmt