diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-09-29 19:50:55 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-09-29 19:50:55 +0200 |
| commit | c2c923276f7ecde1f71e53309dc5d1cc53cd3ff2 (patch) | |
| tree | 88a3667a31d5c463014ff2691acbfb7afb6bc0b1 /tests | |
| parent | ed144309fab03565e7b6963b5e5e936b658a053f (diff) | |
| download | elna-c2c923276f7ecde1f71e53309dc5d1cc53cd3ff2.tar.gz | |
Implement addition and subtraction
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/expectations/print_subtraction.txt | 1 | ||||
| -rw-r--r-- | tests/expectations/print_sum.txt | 1 | ||||
| -rw-r--r-- | tests/vm/print_subtraction.elna | 3 | ||||
| -rw-r--r-- | tests/vm/print_sum.elna | 3 |
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/expectations/print_subtraction.txt b/tests/expectations/print_subtraction.txt new file mode 100644 index 0000000..de71f88 --- /dev/null +++ b/tests/expectations/print_subtraction.txt @@ -0,0 +1 @@ +-8 diff --git a/tests/expectations/print_sum.txt b/tests/expectations/print_sum.txt new file mode 100644 index 0000000..3c03207 --- /dev/null +++ b/tests/expectations/print_sum.txt @@ -0,0 +1 @@ +18 diff --git a/tests/vm/print_subtraction.elna b/tests/vm/print_subtraction.elna new file mode 100644 index 0000000..c5b09a2 --- /dev/null +++ b/tests/vm/print_subtraction.elna @@ -0,0 +1,3 @@ +proc main() { + printi(5 - 13); +} diff --git a/tests/vm/print_sum.elna b/tests/vm/print_sum.elna new file mode 100644 index 0000000..8ad98d6 --- /dev/null +++ b/tests/vm/print_sum.elna @@ -0,0 +1,3 @@ +proc main() { + printi(5 + 13); +} |
