TAAFT
Free mode
100% free
Freemium
Free Trial
Prompts Deals

Assertive

carllerche / assertive

Collections of Rust assertions

4 0 Language: Rust License: MIT Updated: 6y ago

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.

0 AIs selected
Clear selection
#
Name
Task