Testament: refactoring; makes the test joiner green

This commit is contained in:
Araq 2018-12-06 16:37:56 +01:00
commit 3b783f7e13
28 changed files with 176 additions and 230 deletions

View file

@ -25,3 +25,4 @@ for y in items(r2):
stdout.write(y)
#OUT helloworld99110223
stdout.write "\n"

View file

@ -101,4 +101,6 @@ when true:
for y in items(r2):
stdout.write(y)
stdout.write "\n"
#OUT helloworld99110223

View file

@ -32,3 +32,5 @@ c.add('A', "12")
c.add('B', "13")
for k, v in items(c):
stdout.write(" Key: ", $k, " value: ", v)
stdout.write "\n"

View file

@ -33,3 +33,4 @@ c.add('B', "13")
for k, v in items(c):
stdout.write(" Key: ", $k, " value: ", v)
stdout.write "\n"

View file

@ -1,6 +1,7 @@
discard """
output: '''
100 0
100
0
'''
"""
@ -72,7 +73,7 @@ block tgeneric1:
proc print[T](heap: PBinHeap[T]) =
for i in countup(0, heap.last):
stdout.write($heap.heap[i].data, " ")
stdout.write($heap.heap[i].data, "\n")
var heap: PBinHeap[int]

View file

@ -34,3 +34,4 @@ proc test(data: seq[int], value: int): seq[int] =
for x in items(test(@[1,2,3], 2)):
stdout.write(x)
stdout.write "\n"