aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lxiny-examples/arithmetic2.forth
diff options
context:
space:
mode:
authordan <[email protected]>2023-05-29 16:08:47 -0400
committerdan <[email protected]>2023-05-29 16:08:47 -0400
commit31dcdd0c68c6fa9d5ec69a1c025ead619e30e08e (patch)
tree02926f0d4cc76ec9a2485159bb1def42cd7bfc22 /tests/lxiny-examples/arithmetic2.forth
parenteeca88e98212d7b61253b4be5f4ebb2f4b36e770 (diff)
downloadforth-31dcdd0c68c6fa9d5ec69a1c025ead619e30e08e.tar.gz
forth-31dcdd0c68c6fa9d5ec69a1c025ead619e30e08e.tar.bz2
forth-31dcdd0c68c6fa9d5ec69a1c025ead619e30e08e.zip
tests: add lxiny-examples tests
Diffstat (limited to 'tests/lxiny-examples/arithmetic2.forth')
-rw-r--r--tests/lxiny-examples/arithmetic2.forth10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lxiny-examples/arithmetic2.forth b/tests/lxiny-examples/arithmetic2.forth
new file mode 100644
index 0000000..a2212d3
--- /dev/null
+++ b/tests/lxiny-examples/arithmetic2.forth
@@ -0,0 +1,10 @@
+INPUT
+99 negate .k
+-99 abs .
+52 23 max .
+52 23 min .
+OUTPUT
+-99
+99
+52
+23