[fine] A wild VM appears!

Untested though
This commit is contained in:
John Doty 2024-01-14 09:28:05 -08:00
parent 53f18e729b
commit 866830b485
8 changed files with 464 additions and 26 deletions

View file

@ -82,6 +82,11 @@ fn generate_test_for_file(path: PathBuf) -> String {
assertions.push(quote! {
crate::assert_no_errors(&_tree, &_lines);
});
} else if let Some(line) = line.strip_prefix("@eval:") {
let expected = line.trim();
assertions.push(quote! {
crate::assert_eval_ok(&_tree, &_lines, #expected);
});
} else if line.starts_with("@") {
panic!("Test file {display_path} has unknown directive: {line}");
}