diff options
Diffstat (limited to 'tests/vm')
| -rw-r--r-- | tests/vm/printi_if_greater.elna | 6 | ||||
| -rw-r--r-- | tests/vm/printi_if_greater_equal.elna | 6 | ||||
| -rw-r--r-- | tests/vm/printi_if_less.elna | 6 | ||||
| -rw-r--r-- | tests/vm/printi_if_less_equal.elna | 6 | ||||
| -rw-r--r-- | tests/vm/printi_if_not.elna | 6 | ||||
| -rw-r--r-- | tests/vm/printi_if_not_compound.elna | 9 |
6 files changed, 39 insertions, 0 deletions
diff --git a/tests/vm/printi_if_greater.elna b/tests/vm/printi_if_greater.elna new file mode 100644 index 0000000..57d5ba5 --- /dev/null +++ b/tests/vm/printi_if_greater.elna @@ -0,0 +1,6 @@ +proc main() { + if ((1 + 1) > 2) + printi(3); + else + printi(5); +} diff --git a/tests/vm/printi_if_greater_equal.elna b/tests/vm/printi_if_greater_equal.elna new file mode 100644 index 0000000..95eb503 --- /dev/null +++ b/tests/vm/printi_if_greater_equal.elna @@ -0,0 +1,6 @@ +proc main() { + if ((1 + 1) >= (2 + 3)) + printi(3); + else + printi(5); +} diff --git a/tests/vm/printi_if_less.elna b/tests/vm/printi_if_less.elna new file mode 100644 index 0000000..2cee6d8 --- /dev/null +++ b/tests/vm/printi_if_less.elna @@ -0,0 +1,6 @@ +proc main() { + if (1 < 2) + printi(3); + else + printi(5); +} diff --git a/tests/vm/printi_if_less_equal.elna b/tests/vm/printi_if_less_equal.elna new file mode 100644 index 0000000..06a162d --- /dev/null +++ b/tests/vm/printi_if_less_equal.elna @@ -0,0 +1,6 @@ +proc main() { + if (2 <= (2 + 1)) + printi(3); + else + printi(5); +} diff --git a/tests/vm/printi_if_not.elna b/tests/vm/printi_if_not.elna new file mode 100644 index 0000000..aafe182 --- /dev/null +++ b/tests/vm/printi_if_not.elna @@ -0,0 +1,6 @@ +proc main() { + if (1 # 2) + printi(3); + else + printi(5); +} diff --git a/tests/vm/printi_if_not_compound.elna b/tests/vm/printi_if_not_compound.elna new file mode 100644 index 0000000..1149a35 --- /dev/null +++ b/tests/vm/printi_if_not_compound.elna @@ -0,0 +1,9 @@ +proc main() { + if (1 # 2) { + printi(3); + printi(7); + } else { + printi(5); + printi(9); + } +} |
