summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-07-22 23:58:19 +0200
committerAraq <rumpf_a@web.de>2011-07-22 23:58:19 +0200
commit246b8d18a1102ddcb6435a67d6979fa2a48bf98e (patch)
treee7e164de8fc2c0998ab17447ab4cb7c5307ec802 /tests
parent569c1ce5ec7cedd2c28d3272aae92062638cad0d (diff)
downloadNim-246b8d18a1102ddcb6435a67d6979fa2a48bf98e.tar.gz
tests repaired; serious typo in the allocator fixed; fixes #32
Diffstat (limited to 'tests')
-rwxr-xr-xtests/accept/compile/tos.nim4
-rwxr-xr-xtests/accept/compile/tseqcon2.nim2
-rwxr-xr-xtests/accept/compile/twalker.nim2
-rwxr-xr-xtests/accept/run/txmlgen.nim2
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/accept/compile/tos.nim b/tests/accept/compile/tos.nim
index 9ab4295f8..fa9993cc9 100755
--- a/tests/accept/compile/tos.nim
+++ b/tests/accept/compile/tos.nim
@@ -6,7 +6,7 @@ proc walkDirTree(root: string) =
   for k, f in walkDir(root):
     case k 
     of pcFile, pcLinkToFile: echo(f)
-    of pcDirectory: walkDirTree(f)
-    of pcLinkToDirectory: nil
+    of pcDir: walkDirTree(f)
+    of pcLinkToDir: nil
 
 walkDirTree(".")
diff --git a/tests/accept/compile/tseqcon2.nim b/tests/accept/compile/tseqcon2.nim
index 6225c3bb1..4f2763ffe 100755
--- a/tests/accept/compile/tseqcon2.nim
+++ b/tests/accept/compile/tseqcon2.nim
@@ -3,7 +3,7 @@ import os
 proc rec_dir(dir: string): seq[string] =
   result = @[]
   for kind, path in walk_dir(dir):
-    if kind == pcDirectory:
+    if kind == pcDir:
       add(result, rec_dir(path))
     else:
       add(result, path)
diff --git a/tests/accept/compile/twalker.nim b/tests/accept/compile/twalker.nim
index ba89ee7c6..3fdd8769b 100755
--- a/tests/accept/compile/twalker.nim
+++ b/tests/accept/compile/twalker.nim
@@ -7,7 +7,7 @@ proc main(filter: string) =
   for filename in walkFiles(filter):

     writeln(stdout, filename)

 

-  for key, val in iterOverEnvironment():

+  for key, val in envPairs():

     writeln(stdout, key & '=' & val)

 

 main("*.nim")

diff --git a/tests/accept/run/txmlgen.nim b/tests/accept/run/txmlgen.nim
index 4d5271563..917427abc 100755
--- a/tests/accept/run/txmlgen.nim
+++ b/tests/accept/run/txmlgen.nim
@@ -2,7 +2,7 @@ discard """
   file: "txmlgen.nim"
   output: "<h1><a href=\"http://force7.de/nimrod\">Nimrod</a></h1>"
 """
-import xmlgen
+import htmlgen
 
 var nim = "Nimrod"
 echo h1(a(href="http://force7.de/nimrod", nim))
57'>257 258 259 260 261 262