From 8151ce5ffec4283a3bc1eeea52b8f9b17cb5d069 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 29 May 2023 10:54:33 -0400 Subject: tests: add initial tests and test runner script --- tests/define-countdown.forth | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/define-countdown.forth (limited to 'tests/define-countdown.forth') 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 -- cgit v1.2.3