make tests green; better output for when megatest execution fails
This commit is contained in:
parent
0d99ff6113
commit
4d616b5dc4
6 changed files with 6 additions and 5 deletions
|
|
@ -106,7 +106,7 @@ proc readChar*(buffer: PBuffer): char {.inline.} = return readInt8(buffer).char
|
|||
proc readBool*(buffer: PBuffer): bool {.inline.} = return readInt8(buffer).bool
|
||||
|
||||
|
||||
when true:
|
||||
when false:
|
||||
var b = newBuffer(100)
|
||||
var str = "hello there"
|
||||
b.write str
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ template unless*(condition: untyped; body: untyped) {.dirty.} =
|
|||
if not condition:
|
||||
body
|
||||
|
||||
when true:
|
||||
when false:
|
||||
proc dumpSeq[T](x: seq[T]) =
|
||||
for index, item in x.pairs:
|
||||
echo index, " ", item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue