cleaned up the tests; fixes #30; fixes #26

This commit is contained in:
Araq 2011-05-01 20:11:55 +02:00
commit 6ff8752be5
52 changed files with 464 additions and 324 deletions

View file

@ -41,7 +41,7 @@ proc add*[T](heap: PBinHeap[T], priority: int, data: T) =
proc print*[T](heap: PBinHeap[T]) =
for i in countup(0, heap.last):
echo heap.heap[i].data
stdout.write($heap.heap[i].data, " ")
var
heap: PBinHeap[int]