summary refs log tree commit diff stats
path: root/tests/accept/run/titer6.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
committerAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
commita274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 (patch)
tree95dc5bf7fe3716a3ab266f78094fccce38c94ccf /tests/accept/run/titer6.nim
parentd0772feb08baaea12bfdad0a7c20a41733f977bd (diff)
downloadNim-a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82.tar.gz
got rid of 'accept' dir in the tests
Diffstat (limited to 'tests/accept/run/titer6.nim')
-rwxr-xr-xtests/accept/run/titer6.nim37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/accept/run/titer6.nim b/tests/accept/run/titer6.nim
deleted file mode 100755
index dceace0e0..000000000
--- a/tests/accept/run/titer6.nim
+++ /dev/null
@@ -1,37 +0,0 @@
-discard """
-  file: "titer6.nim"
-  output: "000"
-"""
-# Test iterator with more than 1 yield statement
-
-import strutils
-
-iterator tokenize2(s: string, seps: set[char] = Whitespace): tuple[
-  token: string, isSep: bool] =
-  var i = 0
-  while i < s.len:
-    var j = i
-    if s[j] in seps:
-      while j < s.len and s[j] in seps: inc(j)
-      if j > i:
-        yield (substr(s, i, j-1), true)
-    else:
-      while j < s.len and s[j] notin seps: inc(j)
-      if j > i:
-        yield (substr(s, i, j-1), false)
-    i = j
-
-for word, isSep in tokenize2("ta da", whiteSpace):
-  var titer2TestVar = 0 
-  stdout.write(titer2TestVar)
-
-proc wordWrap2(s: string, maxLineWidth = 80, 
-               splitLongWords = true,
-               seps: set[char] = whitespace,
-               newLine = "\n"): string  = 
-  result = ""
-  for word, isSep in tokenize2(s, seps):
-    var w = 0 
-
-
-