summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-01-29 01:53:09 +0100
committerAraq <rumpf_a@web.de>2012-01-29 01:53:09 +0100
commit9083f01fd23fe7ea3470136ec2cd7a0d2a600b43 (patch)
tree5d1f5dad3fcc17bbde86a9125e1c10fff319db2e /tests
parent2dd0f8eeabcc4c5415efff6ed33c8a2b144a2c48 (diff)
downloadNim-9083f01fd23fe7ea3470136ec2cd7a0d2a600b43.tar.gz
fixed #96 as good as technically possible (debug frames are allocated on the C stack)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/compile/tsortdev.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/compile/tsortdev.nim b/tests/compile/tsortdev.nim
index 0af0fe0f4..baf238d9e 100755
--- a/tests/compile/tsortdev.nim
+++ b/tests/compile/tsortdev.nim
@@ -28,8 +28,8 @@ when isMainModule:
     var data: seq[string] = @[]
     
     var L = random(59)
-    for i in 0..1: 
-      echo "loop: ", i
+    for i in 0..10_000: 
+      #echo "loop: ", i
       #newSeq(data, L)
       setLen(data, L)
       for j in 0 .. L-1:
@@ -39,13 +39,13 @@ when isMainModule:
       var copy = data
       for j in 0 .. L-1:
         assert getRefcount(copy[j]) == 1
-        assert(cast[pointer](copy[j]) != cast[pointer](data[i]))
+        assert(cast[pointer](copy[j]) != cast[pointer](data[j]))
       
       bubblesort(data, system.cmp, order)
       if not sorted(data, order):
         quit "bubblesort failed"
 
-      sort(copy, cmp, order)
+      #sort(copy, cmp, order)
       for j in 0 .. L-1:
         let rc = getRefcount(data[j])
         if rc != 1: