Attribute Macro testgen::multi_fail

source ·
#[multi_fail]
Expand description

Declares multiple assert_eq!s that should cause the function to panic. Optionally named.

Example:

use testgen::multi_fail;

#[multi_fail(1 => 1, 2 => 2, 3 => 3)]
fn add_one(n: i32) -> i32 {
    n + 1
}