assert-rs 0.1.0

An assertion library that uses types and data to fail tests instead of panicking.
Documentation
#![cfg(test)]
use assert_rs::*;

#[test]
fn is_equal_to() -> impl Assertion {
    assert_that!(1 + 2).is_equal_to(3)
}

#[test]
fn isnt_equal_to() -> impl Assertion {
    assert_that!("fruit").is_equal_to("egg").should_fail()
}

#[test]
fn is_not_equal_to() -> impl Assertion {
    assert_that!(2 + 3).is_not_equal_to(4000)
}

#[test]
fn isnt_not_equal_to() -> impl Assertion {
    assert_that!(5_u8.pow(2)).is_not_equal_to(25).should_fail()
}

#[test]
fn is_greater_than() -> impl Assertion {
    assert_that!(4).is_greater_than(3)
}

#[test]
fn is_not_greater_than() -> impl Assertion {
    multi_assert!(
        assert_that!(5).is_greater_than(5).should_fail(),
        assert_that!(5).is_greater_than(6).should_fail(),
    )
}

#[test]
fn is_less_than() -> impl Assertion {
    assert_that!(12).is_less_than(42)
}

#[test]
fn is_not_less_than() -> impl Assertion {
    multi_assert!(
        assert_that!(5).is_less_than(5).should_fail(),
        assert_that!(5).is_less_than(2).should_fail(),
    )
}

#[test]
fn is_greater_than_or_equal_to() -> impl Assertion {
    multi_assert!(
        assert_that!(4).is_greater_than_or_equal_to(3),
        assert_that!(42).is_greater_than_or_equal_to(42),
    )
}

#[test]
fn is_not_greater_than_or_equal_to() -> impl Assertion {
    assert_that!(5).is_greater_than_or_equal_to(6).should_fail()
}

#[test]
fn is_less_than_or_equal_to() -> impl Assertion {
    multi_assert!(
        assert_that!(4).is_less_than_or_equal_to(23),
        assert_that!(12).is_less_than_or_equal_to(12),
    )
}

#[test]
fn is_not_less_than_or_equal_to() -> impl Assertion {
    assert_that!(3).is_less_than_or_equal_to(1).should_fail()
}