use std::{error::Error, path::Path}; use test_utils::{check_compilation, Expected}; const SRC_PATH: &str = "./examples/functions.why"; const EXPECTED: Expected = Expected { stdout: "7 10 65 6 from_function 24", stderr: "", }; #[test] fn compile_and_run_functions() -> Result<(), Box> { check_compilation(Path::new(SRC_PATH), EXPECTED) }