diff options
author | dan <[email protected]> | 2023-05-29 10:54:33 -0400 |
---|---|---|
committer | dan <[email protected]> | 2023-05-29 10:54:33 -0400 |
commit | 8151ce5ffec4283a3bc1eeea52b8f9b17cb5d069 (patch) | |
tree | 6acc9920cc286346952d5a14a9111722dc8aaee9 /tests/define-countdown.forth | |
parent | 1cc9bd9d82f970aba524ff57d9b67e9efac47ce9 (diff) | |
download | forth-8151ce5ffec4283a3bc1eeea52b8f9b17cb5d069.tar.gz forth-8151ce5ffec4283a3bc1eeea52b8f9b17cb5d069.tar.bz2 forth-8151ce5ffec4283a3bc1eeea52b8f9b17cb5d069.zip |
tests: add initial tests and test runner script
Diffstat (limited to 'tests/define-countdown.forth')
-rw-r--r-- | tests/define-countdown.forth | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/define-countdown.forth b/tests/define-countdown.forth new file mode 100644 index 0000000..539b229 --- /dev/null +++ b/tests/define-countdown.forth @@ -0,0 +1,9 @@ +INPUT +: countdown dup 0 = not if peek 1 - countdown then ; +5 countdown +OUTPUT +5 +4 +3 +2 +1 |