1 2 3 4 5 6 7 8 9 10 11
#[cfg(test)] use akin::akin; #[test] fn operations() { let (a, b) = (5, 6); akin! { let &op = [+, -, *, /]; println!("a *op b = {}", a *op b); } }