summary refs log tree commit diff stats
path: root/tests/titer3.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/titer3.nim')
-rwxr-xr-xtests/titer3.nim17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/titer3.nim b/tests/titer3.nim
deleted file mode 100755
index d0e121445..000000000
--- a/tests/titer3.nim
+++ /dev/null
@@ -1,17 +0,0 @@
-
-iterator count1_3: int =
-  yield 1
-  yield 2
-  yield 3
-
-for x in count1_3():
-  write(stdout, $x)
-
-# yield inside an iterator, but not in a loop:
-iterator iter1(a: openArray[int]): int =
-  yield a[0]
-
-var x = [[1, 2, 3], [4, 5, 6]]
-for y in iter1(x[0]): write(stdout, $y)
-
-#OUT 1231
\ No newline at end of file