shoulds
shoulds is a Shouldly-inspired test assertion library for testing Rust.
Current Assertions:
Equality
should_beshould_be_greater_thanshould_be_greater_than_or_equal_toshould_be_less_thanshould_be_less_than_or_equal_to
Strings
should_containshould_not_contain
Booleans
should_be_falseshould_be_true
Results
should_be_errorshould_be_ok
I'll add more assertions along the way as the need arises.
Install:
Cargo.toml:
[]
= "0.1.6"
Enjoy:
src/lib.rs: