rush/rush_macro/tests/var_func_test.rs
Rowan Torbitzky-Lane d697e14173
Some checks failed
/ Test-Suite (push) Failing after 20s
Incomplete, will change all this code later
2025-04-17 01:26:05 -05:00

12 lines
188 B
Rust

use rush_macro::run_func;
fn uadd(x: usize, y: usize, z: usize) -> usize {
x + y + z
}
#[test]
fn run_func_test() {
let res = run_func!(uadd, 1, 4, 2);
assert_eq!(res, 7);
}