assertive

Crates.ioassertive
lib.rsassertive
version0.0.2
sourcesrc
created_at2019-05-11 22:43:04.253438
updated_at2024-04-19 19:32:32.820295
descriptionCollection of assertions
homepagehttps://github.com/carllerche/assertive
repositoryhttps://github.com/carllerche/assertive
max_upload_size
id133617
size5,918
Team algorithmia (github:algorithmiaio:team-algorithmia)

documentation

https://docs.rs/assertive/0.1.0/assertive

README

Assertive

A collection of assertions.

Usage

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");
}

License

This project is licensed under the MIT license.

Contribution

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.

Commit count: 2

cargo fmt