shoulds
shoulds is a fluent assertion library for Rust tests, inspired by FluentAssertions and Shouldly.
It helps you write readable, intention-revealing tests like:
use Shouldable;
The API is designed to be intuitive and discoverable, so you can express expectations naturally—with minimal boilerplate and maximum clarity.
✨ Assertions
Currently supported:
🔢 Equality
should().eq(&expected)should().ne(&unexpected)
✅ Booleans
should().be_true()should().be_false()
🧩 Option
should().be_some()should().be_none()
🧪 Result
should().be_ok()should().be_err()
📦 Installation
In your Cargo.toml:
[]
= "0.3.0"
🧪 Examples
use Shouldable;
📄 License
MIT