Accepts any number of arguments and panics if they are not equal.
This is useful if you want to test whether different implementations actually return the same result.
main.rs
```rust use asserteqall::{asserteqall, assertneall};
// Benchmarked functions fn myfuncimpl1(x: u32) -> u32 { x } fn myfuncimpl2(x: u32) -> u32 { x } fn myfuncimpl3(x: u32) -> u32 { x } fn myfuncimpl4(x: u32) -> u32 { x } fn myfuncimpl5(x: u32) -> u32 { x } fn myfuncimpl6(x: u32) -> u32 { x } fn myfuncimpl_7(x: u32) -> u32 { x + 1 } // ^^^ // An error in one of the options for an alternative // implementation of the algorithm.
fn main() {
println!("Hello world!");
let x = 20;
asserteqall!(
myfuncimpl1(x), // 20
myfuncimpl2(x), // 20
myfuncimpl3(x), // 20
myfuncimpl4(x), // 20
myfuncimpl5(x), // 20
myfuncimpl6(x), // 20
myfuncimpl_7(x), // 21 <--
);
assert_ne_all!(
my_func_impl_6(x), // 20
my_func_impl_7(x), // 21
);
} ```