aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/runner/while.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/runner/while.testscript')
-rw-r--r--tests/test/script/runner/while.testscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test/script/runner/while.testscript b/tests/test/script/runner/while.testscript
new file mode 100644
index 0000000..1c58827
--- /dev/null
+++ b/tests/test/script/runner/while.testscript
@@ -0,0 +1,16 @@
+# file : tests/test/script/runner/while.testscript
+# license : MIT; see accompanying LICENSE file
+
+.include ../common.testscript
+
+: basics
+:
+$c <<EOI && $b >>EOO
+ while ($v != "aa")
+ echo "$v" >|
+ v = "$(v)a"
+ end
+ EOI
+
+ a
+ EOO