fixed sytnax errors in tests

This commit is contained in:
Annie
2025-04-04 20:39:01 -04:00
parent a53a22530d
commit a5e1acefde
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ type rec: [integer: x; integer: y]
type main: rec -> integer type main: rec -> integer
function test: main function test: main
test (arg, arg2) := { test (arg) := {
[integer:x; Boolean: b] [integer:x; Boolean: b]
while (true) { while (true) {
x := 0; x := 0;
@ -12,13 +12,13 @@ test (arg, arg2) := {
x := 1; x := 1;
} }
if (true) { if (true) then {
x := 1; x := 1;
} else { } else {
x := 0; x := 0;
} }
if (x) { if (x) then {
x := 0; x := 0;
} else { } else {
x := 1; x := 1;

View File

@ -11,8 +11,8 @@ entry (arg) := {
b2 := 3 * 2 % 8; b2 := 3 * 2 % 8;
x := 3 % 2 * 8; x := 3 % 2 * 8;
x := 3 + arr - 8; x := 3 + arr - 8;
r.x; x := r.x;
a.x; x := a.x;
return 0; return 0;
} }