aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/core-ext/case-test.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/core-ext/case-test.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/core-ext/case-test.frt7
1 files changed, 7 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/core-ext/case-test.frt b/amforth-6.5/common/lib/forth2012/core-ext/case-test.frt
new file mode 100644
index 0000000..ad9b1f1
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/core-ext/case-test.frt
@@ -0,0 +1,7 @@
+ : foo ( selector -- )
+ case
+ 3 of ." three" endof
+ 5 9 range of ." between" endof
+ 1 of ." one" endof
+ endcase
+ ;