summaryrefslogtreecommitdiffstats
path: root/stacker/test/pick.st
diff options
context:
space:
mode:
Diffstat (limited to 'stacker/test/pick.st')
-rw-r--r--stacker/test/pick.st9
1 files changed, 9 insertions, 0 deletions
diff --git a/stacker/test/pick.st b/stacker/test/pick.st
new file mode 100644
index 00000000000..b9670b13874
--- /dev/null
+++ b/stacker/test/pick.st
@@ -0,0 +1,9 @@
+#
+# PICK test
+#
+# Logic: // x0 ... Xn n -- x0 ... Xn x0
+#
+FORWARD success;
+FORWARD failure;
+: next 10 = IF success ELSE failure ENDIF ;
+: MAIN 0 1 2 3 4 5 6 7 8 9 10 5 PICK 5 = IF next ELSE failure ENDIF ;
OpenPOWER on IntegriCloud