Expand description
§shoulds
shoulds
is a fluent assertion library for writing expressive and readable test assertions in Rust.
Inspired by FluentAssertions and Shouldly,
this crate provides a .should()
extension that enables fluent chaining of assertions.
§Example
use shoulds::Shouldable;
let value = 42;
value.should().eq(&42);
§Status
This crate is experimental and evolving. The API may change in 0.x versions as we build toward a richer set of assertions and improved error messages.
Structs§
- Should
- A wrapper type that provides fluent-style assertions for a given value.
Traits§
- Shouldable
- A trait implemented for all types to enable fluent assertions using
Should<T>
.