remove unused imports from tests
This commit is contained in:
parent
cc3e9ca164
commit
c6a451c584
12 changed files with 10 additions and 18 deletions
|
|
@ -4,7 +4,7 @@ output: '''
|
|||
(BracketExpr (Sym "typeDesc") (Sym "User"))
|
||||
'''
|
||||
"""
|
||||
import strutils, macros
|
||||
import macros
|
||||
|
||||
type
|
||||
Model = object of RootObj
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
"""
|
||||
|
||||
import macros, strUtils
|
||||
import macros
|
||||
|
||||
proc symToIdent(x: NimNode): NimNode =
|
||||
case x.kind:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import macros
|
||||
|
||||
from uri import `/`
|
||||
|
||||
macro test*(a: untyped): untyped =
|
||||
var nodes: tuple[a, b: int]
|
||||
nodes.a = 4
|
||||
|
|
@ -22,7 +20,6 @@ macro test*(a: untyped): untyped =
|
|||
test:
|
||||
"hi"
|
||||
|
||||
import strutils
|
||||
|
||||
template assertNot(arg: untyped): untyped =
|
||||
assert(not(arg))
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ discard """
|
|||
output: "after"
|
||||
"""
|
||||
|
||||
import
|
||||
macros, strutils
|
||||
import macros
|
||||
|
||||
macro test_macro*(s: string, n: untyped): untyped =
|
||||
result = newNimNode(nnkStmtList)
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@ discard """
|
|||
{a, b}'''
|
||||
"""
|
||||
|
||||
import
|
||||
macros, strutils
|
||||
import macros
|
||||
|
||||
macro outterMacro*(n, blck: untyped): untyped =
|
||||
let n = callsite()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue