diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-10-06 18:07:57 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-10-06 18:09:08 +0200 |
| commit | 699cc8684b1571d2501bac2c8bdf461127a420a1 (patch) | |
| tree | 9caecb24007eda52a074f348bbd613da033a2069 /tests | |
| parent | 35742aa52587400950cf25170c2247f98f498d4d (diff) | |
| download | elna-699cc8684b1571d2501bac2c8bdf461127a420a1.tar.gz | |
Implement division
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/expectations/add_products.txt | 1 | ||||
| -rw-r--r-- | tests/expectations/printi_quotient.txt | 1 | ||||
| -rw-r--r-- | tests/vm/add_products.elna | 3 | ||||
| -rw-r--r-- | tests/vm/printi_quotient.elna | 3 |
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/expectations/add_products.txt b/tests/expectations/add_products.txt new file mode 100644 index 0000000..e522732 --- /dev/null +++ b/tests/expectations/add_products.txt @@ -0,0 +1 @@ +38 diff --git a/tests/expectations/printi_quotient.txt b/tests/expectations/printi_quotient.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/tests/expectations/printi_quotient.txt @@ -0,0 +1 @@ +2 diff --git a/tests/vm/add_products.elna b/tests/vm/add_products.elna new file mode 100644 index 0000000..a5c116f --- /dev/null +++ b/tests/vm/add_products.elna @@ -0,0 +1,3 @@ +proc main() { + printi(2 * 3 + 4 * 8); +} diff --git a/tests/vm/printi_quotient.elna b/tests/vm/printi_quotient.elna new file mode 100644 index 0000000..0f30f4d --- /dev/null +++ b/tests/vm/printi_quotient.elna @@ -0,0 +1,3 @@ +proc main() { + printi(4 / 2); +} |
