Testament: refactoring; makes the test joiner green
This commit is contained in:
parent
8896770f8f
commit
3b783f7e13
28 changed files with 176 additions and 230 deletions
|
|
@ -25,3 +25,4 @@ for y in items(r2):
|
|||
stdout.write(y)
|
||||
|
||||
#OUT helloworld99110223
|
||||
stdout.write "\n"
|
||||
|
|
|
|||
|
|
@ -101,4 +101,6 @@ when true:
|
|||
for y in items(r2):
|
||||
stdout.write(y)
|
||||
|
||||
stdout.write "\n"
|
||||
|
||||
#OUT helloworld99110223
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -33,3 +33,4 @@ c.add('B', "13")
|
|||
for k, v in items(c):
|
||||
stdout.write(" Key: ", $k, " value: ", v)
|
||||
|
||||
stdout.write "\n"
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue