Add function calling

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-15 11:27:25 +01:00
parent 52a63a7066
commit 10bcd77040
5 changed files with 275 additions and 7 deletions

View file

@ -2,6 +2,7 @@ use std::collections::HashMap;
use std::path::Path;
use nomo::Context;
use nomo::functions::FunctionMap;
test_each_file::test_each_path! { for ["nomo"] in "./tests/cases/" as cases => check_for_input }
@ -58,7 +59,7 @@ fn check_for_input([path]: [&Path; 1]) {
insta::assert_debug_snapshot!(format!("{basename}.3-instructions"), emit);
let output = nomo::eval::execute(&emit, &context).unwrap();
let output = nomo::eval::execute(&FunctionMap::default(), &emit, &context).unwrap();
insta::assert_debug_snapshot!(format!("{basename}.4-output"), output);
}