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
|
|
@ -244,7 +244,7 @@ template forwardPacketT*(typeName: untyped; underlyingType: untyped) {.dirty.} =
|
|||
#writeData(s, addr p, sizeof(p))
|
||||
buffer.write(underlyingType(ord))
|
||||
|
||||
when true:
|
||||
when false:
|
||||
type
|
||||
SomeEnum = enum
|
||||
A = 0'i8,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ macro `?`(a: untyped): untyped =
|
|||
result = ($a[1].ident)[0].lit
|
||||
## echo(?F,?a,?t,?t,?y)
|
||||
|
||||
when true:
|
||||
when false:
|
||||
macro foo(x: untyped) =
|
||||
result = newNimNode(nnkStmtList)
|
||||
result.add(newNimNode(nnkCall).und(!!"echo", "Hello thar".lit))
|
||||
|
|
|
|||
|
|
@ -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