summaryrefslogtreecommitdiffstats
path: root/tests/008
diff options
context:
space:
mode:
Diffstat (limited to 'tests/008')
-rw-r--r--tests/008/repeat.expected3
-rw-r--r--tests/008/repeat.txr6
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/008/repeat.expected b/tests/008/repeat.expected
new file mode 100644
index 00000000..495d096a
--- /dev/null
+++ b/tests/008/repeat.expected
@@ -0,0 +1,3 @@
+1 3 a
+2 3 b
+3 3 c
diff --git a/tests/008/repeat.txr b/tests/008/repeat.txr
new file mode 100644
index 00000000..dba54831
--- /dev/null
+++ b/tests/008/repeat.txr
@@ -0,0 +1,6 @@
+@(bind a ("a" "b" "c"))
+@(output)
+@(repeat :counter (i 1) :vars ((x (len a))))
+@i @x @a
+@(end)
+@(end)