Refactored remaining tests to use check macro

This commit is contained in:
2025-12-30 12:34:47 -07:00
parent 8c8ae23a27
commit c1a8af6aa7
5 changed files with 223 additions and 138 deletions

View File

@@ -447,8 +447,8 @@ fn modulo_operation() -> anyhow::Result<()> {
fn exponentiation() -> anyhow::Result<()> {
let compiled = compile! {
check "
let x = 2 ^ 8;
let y = 3 ^ 3;
let x = 2 ** 8;
let y = 3 ** 3;
"
};
@@ -464,8 +464,10 @@ fn exponentiation() -> anyhow::Result<()> {
"
j main
main:
move r0 3
move r1 3
pow r1 2 8
move r8 r1
pow r2 3 3
move r9 r2
"
}
);