aboutsummaryrefslogtreecommitdiffstats
path: root/tests/nested-ifs3.forth
diff options
context:
space:
mode:
authordan <[email protected]>2023-05-29 11:05:20 -0400
committerdan <[email protected]>2023-05-29 11:05:20 -0400
commit2455c38a09be3708062fef3e90bc006ab44dfacb (patch)
tree7feaf3055fde3b4466887f7f080d374ed3ac6746 /tests/nested-ifs3.forth
parent8151ce5ffec4283a3bc1eeea52b8f9b17cb5d069 (diff)
downloadforth-2455c38a09be3708062fef3e90bc006ab44dfacb.tar.gz
forth-2455c38a09be3708062fef3e90bc006ab44dfacb.tar.bz2
forth-2455c38a09be3708062fef3e90bc006ab44dfacb.zip
tests: add failing nested if test, make runtests.sh return exit code 1 on failure
Diffstat (limited to 'tests/nested-ifs3.forth')
-rw-r--r--tests/nested-ifs3.forth5
1 files changed, 5 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