Fixup the testing stuff

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-06 15:09:53 +01:00
parent d3e6410ec0
commit 67b9c418ac
11 changed files with 12 additions and 30 deletions

View file

@ -29,18 +29,18 @@ fn check_cases() {
let parsed = temple::parser::parse(input.into()).unwrap();
insta::assert_debug_snapshot!("parsed", parsed);
insta::assert_debug_snapshot!("1-parsed", parsed);
let ast = temple::ast::parse(parsed.tokens()).unwrap();
insta::assert_debug_snapshot!("ast", ast);
insta::assert_debug_snapshot!("2-ast", ast);
let emit = temple::emit::emit_machine(ast);
insta::assert_debug_snapshot!("instructions", emit);
insta::assert_debug_snapshot!("3-instructions", emit);
let output = temple::eval::execute(&emit, &context).unwrap();
insta::assert_debug_snapshot!("output", output);
insta::assert_debug_snapshot!("4-output", output);
});
}