diff options
-rw-r--r-- | tests/nested-ifs3.forth | 5 | ||||
-rw-r--r-- | tests/redefine-builtin.forth | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/nested-ifs3.forth b/tests/nested-ifs3.forth new file mode 100644 index 0000000..729229d --- /dev/null +++ b/tests/nested-ifs3.forth @@ -0,0 +1,5 @@ +INPUT +: f if 99 . if 88 . then 77 . then 66 . ; +0 0 f +OUTPUT +66 diff --git a/tests/redefine-builtin.forth b/tests/redefine-builtin.forth new file mode 100644 index 0000000..88f3a52 --- /dev/null +++ b/tests/redefine-builtin.forth @@ -0,0 +1,5 @@ +INPUT +: + * ; +5 6 * . +OUTPUT +30 |