assertx 1.1.7

Additional test assertions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(not(any(feature = "logging")))]
#[test]
fn when_no_features_are_enabled() {
    let t = trybuild::TestCases::new();
    t.pass("tests/collections/*.rs");
    t.compile_fail("tests/logging/*.rs");
    t.pass("tests/variants/*.rs")
}

#[cfg(feature = "logging")]
#[test]
fn when_logging_is_enabled() {
    let t = trybuild::TestCases::new();
    t.pass("tests/collections/*.rs");
    t.pass("tests/logging/*.rs");
    t.pass("tests/variants/*.rs")
}