Thanks to visit codestin.com
Credit goes to lib.rs

2 releases

0.0.2 Apr 19, 2024
0.0.0 May 11, 2019

#730 in Testing

Codestin Search App Codestin Search App Codestin Search App

73 downloads per month

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.

No runtime deps