diff options
author | dan <[email protected]> | 2023-06-02 22:42:43 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-06-02 22:42:43 -0400 |
commit | b57c5edfe17f4d08853e6493535e2027a5d50e76 (patch) | |
tree | 89b0bfb7271b92e1da738ac5b78d5b06af1e4788 | |
parent | 31ae9a14ef4d76eaf3ad79fb31477ea4596d047e (diff) | |
download | forth-b57c5edfe17f4d08853e6493535e2027a5d50e76.tar.gz forth-b57c5edfe17f4d08853e6493535e2027a5d50e76.tar.bz2 forth-b57c5edfe17f4d08853e6493535e2027a5d50e76.zip |
tests: add redefine-builtin test and re-add nested-ifs3 test
-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 |