use rune_testing::{run, Result}; fn main() -> Result<()> { let input: Vec = vec![1, 2, 3, 4]; let output: Vec = run( &["calc"], (input,), r#" fn calc(input) { let output = 0; for value in input { output += value; } [output] } "#, )?; println!("{:?}", output); Ok(()) }