nomo/tests/checks.rs
Marcel Müller b0620a00d5 Fix issue with repeating {{ else }} blocks
Signed-off-by: Marcel Müller <neikos@neikos.email>
2026-03-09 16:02:55 +01:00

18 lines
446 B
Rust

#[test]
fn check_files() {
let files = std::fs::read_dir("tests/checks/").unwrap();
for file in files {
let input = std::fs::read_to_string(file.unwrap().path()).unwrap();
let Ok(parsed) = nomo::parser::parse(input.into()) else {
continue;
};
let Ok(ast) = nomo::ast::parse(parsed.tokens()) else {
continue;
};
let _emit = nomo::emit::emit_machine(ast);
}
}