summary refs log tree commit diff stats
path: root/tests/iter/titer10.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iter/titer10.nim')
-rw-r--r--tests/iter/titer10.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/iter/titer10.nim b/tests/iter/titer10.nim
index 6a6afc780..ae36aa519 100644
--- a/tests/iter/titer10.nim
+++ b/tests/iter/titer10.nim
@@ -23,7 +23,7 @@ when true:
       for val in sortable:
           yield val
 
-  when isMainModule:
+  when true:
     proc main =
       for val in byDistance([2, 3, 5, 1], 3):
           echo val
@@ -40,7 +40,7 @@ when true:
                  @[2, 3]]
 
   iterator threadUniqs(seq1: seq[seq[int]]): seq[seq[int]] =
-    for i in 0 .. <seq1.len:
+    for i in 0 ..< seq1.len:
       block:
         let i = i
         yield seq1.filter do (x: seq[int]) -> bool: x[0] == seq1[i][0]