diff --git a/tests/sprint4/test/sp4_cg_and.alpha b/tests/sprint4/test/sp4_cg_and.alpha index 5d5590b..a42409b 100644 --- a/tests/sprint4/test/sp4_cg_and.alpha +++ b/tests/sprint4/test/sp4_cg_and.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [Boolean:b; Boolean: c; Boolean: d] + [Boolean:b; Boolean: c; Boolean: d; integer: result] z := true; d := false; d := c & d; - + + result := printBoolean(d); return 1; } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_div.alpha b/tests/sprint4/test/sp4_cg_div.alpha index 4e27b37..39d5a83 100644 --- a/tests/sprint4/test/sp4_cg_div.alpha +++ b/tests/sprint4/test/sp4_cg_div.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [integer:x; integer:y] + [integer:x; integer:y; integer: result] - y := 1; - x := 3; + x := 24; + y := 3; y := x / y; - + + result := printInteger(y); return y; } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_equal_to.alpha b/tests/sprint4/test/sp4_cg_equal_to.alpha index d7011a0..a2823cc 100644 --- a/tests/sprint4/test/sp4_cg_equal_to.alpha +++ b/tests/sprint4/test/sp4_cg_equal_to.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [Boolean: b; integer: x; integer: y] + [Boolean: b; integer: x; integer: y; integer: result] x := 1; y := 2; b := x = y; + result := printBoolean(b); return 1; } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_less_than.alpha b/tests/sprint4/test/sp4_cg_less_than.alpha index 6b13385..77867ab 100644 --- a/tests/sprint4/test/sp4_cg_less_than.alpha +++ b/tests/sprint4/test/sp4_cg_less_than.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [Boolean: b; integer: x; integer: y] + [Boolean: b; integer: x; integer: y; integer: result] x := 1; y := 2; b := x < y; - + + result := printBoolean(b); return 1; } diff --git a/tests/sprint4/test/sp4_cg_mod.alpha b/tests/sprint4/test/sp4_cg_mod.alpha index ad6530a..fbd40d5 100644 --- a/tests/sprint4/test/sp4_cg_mod.alpha +++ b/tests/sprint4/test/sp4_cg_mod.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [integer:x; integer:y] + [integer:x; integer:y; integer: result] - y := 1; - x := 3; - y := x % y; + x := 4; + y := 20; + y := y % x; + result := printInteger(y); return y; } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_mult.alpha b/tests/sprint4/test/sp4_cg_mult.alpha index dfa8fce..28e7ab6 100644 --- a/tests/sprint4/test/sp4_cg_mult.alpha +++ b/tests/sprint4/test/sp4_cg_mult.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [integer:x; integer:y] + [integer:x; integer:y; integer: result] - y := 1; x := 3; - y := x * x; + y := 20; + y := x * y; + result := printInteger(y); return y; } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_neg.alpha b/tests/sprint4/test/sp4_cg_neg.alpha index 4b7fda8..2ffe34a 100644 --- a/tests/sprint4/test/sp4_cg_neg.alpha +++ b/tests/sprint4/test/sp4_cg_neg.alpha @@ -3,10 +3,11 @@ #include "std.alpha" entry (arg) := { - [integer:x; integer:y] + [integer:x; integer:y; integer: result] x := 3; y := -x; - + + result := printInteger(y); return y; } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_not.alpha b/tests/sprint4/test/sp4_cg_not.alpha index 803b3de..6811471 100644 --- a/tests/sprint4/test/sp4_cg_not.alpha +++ b/tests/sprint4/test/sp4_cg_not.alpha @@ -3,10 +3,11 @@ #include "std.alpha" entry (arg) := { - [Boolean: c; Boolean: d] + [Boolean: c; Boolean: d; integer: result] c := true; d := !c; - + + result := printBoolean(d); return 1; } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_or.alpha b/tests/sprint4/test/sp4_cg_or.alpha index 6788796..61392c2 100644 --- a/tests/sprint4/test/sp4_cg_or.alpha +++ b/tests/sprint4/test/sp4_cg_or.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [Boolean:b; Boolean: c; Boolean: d] + [Boolean:b; Boolean: c; Boolean: d; integer: result] c := true; d := false; d := c | d; + + result := printBoolean(d); return 1; - } \ No newline at end of file diff --git a/tests/sprint4/test/sp4_cg_sub.alpha b/tests/sprint4/test/sp4_cg_sub.alpha index 9ab6b68..4b60e57 100644 --- a/tests/sprint4/test/sp4_cg_sub.alpha +++ b/tests/sprint4/test/sp4_cg_sub.alpha @@ -3,11 +3,12 @@ #include "std.alpha" entry (arg) := { - [integer:x; integer:y] + [integer:x; integer:y; integer: result] y := 1; x := 3; y := x - y; + result := printInteger(y); return y; } \ No newline at end of file