Clean up tests/manyloc
named_argument_bug still fails
This commit is contained in:
parent
416456cefe
commit
1c34f30bbb
13 changed files with 113 additions and 121 deletions
|
|
@ -9,15 +9,6 @@ template defPacketImports*(): stmt {.immediate, dirty.} =
|
|||
import macros, macro_dsl, estreams
|
||||
from strutils import format
|
||||
|
||||
proc `$`*[T](x: seq[T]): string =
|
||||
result = "[seq len="
|
||||
result.add($x.len)
|
||||
result.add ':'
|
||||
for i in 0.. <len(x):
|
||||
result.add " "
|
||||
result.add($x[i])
|
||||
result.add ']'
|
||||
|
||||
macro defPacket*(typeNameN: expr, typeFields: expr): stmt {.immediate.} =
|
||||
result = newNimNode(nnkStmtList)
|
||||
let
|
||||
|
|
@ -293,4 +284,4 @@ when isMainModule:
|
|||
for itm in test.x:
|
||||
echo(itm)
|
||||
test.pack(s)
|
||||
echo(repr(s.data))
|
||||
echo(repr(s.data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue