1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use rune_testing::{run, Result}; fn main() -> Result<()> { let object: (i64, i64) = run( &["calc"], ((1, 2),), r#" fn calc(input) { (input.0 + 1, input.1 + 2) } "#, )?; println!("{:?}", object); Ok(()) }