std-next 0.1.9

Opinionated utilities and polyfills
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use stdx::assert_not;

#[test]
fn test_assert_false() {
    assert_not!(1 == 2);
}

#[should_panic(expected = "assertion failed: !(1 != 2)")]
#[test]
fn test_assert_true() {
    assert_not!(1 != 2);
}