2 releases

new 0.0.2 Apr 19, 2024
0.0.0 May 11, 2019

#408 in Data structures

MIT license

5KB

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.


lib.rs:

Collection of assertions.

No runtime deps