nomo/tests/checks.rs
Marcel Müller 7f7bf5c98d Start fixing error outputs
Signed-off-by: Marcel Müller <neikos@neikos.email>
2026-03-16 11:22:29 +01:00

20 lines
477 B
Rust

#![allow(missing_docs)]
#[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::lexer::parse(input.into()) else {
continue;
};
let Ok(ast) = nomo::parser::parse(parsed.tokens()) else {
continue;
};
let _emit = nomo::compiler::emit_machine(ast);
}
}