Crates.io | assertive |
lib.rs | assertive |
version | 0.0.2 |
source | src |
created_at | 2019-05-11 22:43:04.253438 |
updated_at | 2024-04-19 19:32:32.820295 |
description | Collection of assertions |
homepage | https://github.com/carllerche/assertive |
repository | https://github.com/carllerche/assertive |
max_upload_size | |
id | 133617 |
size | 5,918 |
A collection of assertions.
To use assertive
, first add this to your Cargo.toml
:
[dependencies]
assertive = "0.1.0"
Next, add this to your crate:
use assertive::*;
fn main() {
let value = assert_ok!(Ok::<_, ()>("hello"));
assert_eq!(value, "hello");
}
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in assertive
by you, shall be licensed as MIT, without
any additional terms or conditions.