remove unused imports from tests

This commit is contained in:
narimiran
2019-11-06 13:59:31 +01:00
parent cc3e9ca164
commit c6a451c584
12 changed files with 10 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ discard """
# bug #5079
import tables, strutils
import tables
type Test = ref object
s: string

View File

@@ -12,8 +12,7 @@ foo = bar # No error if assigned directly
# bug #2250
import
math, strutils
import math
type
Meters = float

View File

@@ -2,7 +2,7 @@ discard """
output: "passed all tests."
"""
import math, strutils
import strutils
proc c_sprintf(buf, fmt: cstring) {.importc:"sprintf", header: "<stdio.h>", varargs.}

View File

@@ -22,7 +22,7 @@ end
"""
import algorithm, math, sequtils, strutils
import sequtils, strutils
block t338:

View File

@@ -4,7 +4,7 @@ output: '''
(BracketExpr (Sym "typeDesc") (Sym "User"))
'''
"""
import strutils, macros
import macros
type
Model = object of RootObj

View File

@@ -1,7 +1,7 @@
discard """
"""
import macros, strUtils
import macros
proc symToIdent(x: NimNode): NimNode =
case x.kind:

View File

@@ -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))

View File

@@ -2,8 +2,7 @@ discard """
output: "after"
"""
import
macros, strutils
import macros
macro test_macro*(s: string, n: untyped): untyped =
result = newNimNode(nnkStmtList)

View File

@@ -5,8 +5,7 @@ discard """
{a, b}'''
"""
import
macros, strutils
import macros
macro outterMacro*(n, blck: untyped): untyped =
let n = callsite()

View File

@@ -1,5 +1,3 @@
import typetraits
template reject(e) =
static: assert(not compiles(e))

View File

@@ -1,7 +1,7 @@
discard """
output: "3"
"""
import StrUtils, Math
import math
proc FibonacciA(n: int): int64 =
var fn = float64(n)

View File

@@ -14,7 +14,7 @@ when haveZipLib:
import zipfiles
import
os, osproc, strutils, parseopt, parsecfg, strtabs, streams, debcreation,
os, strutils, parseopt, parsecfg, strtabs, streams, debcreation,
std / sha1
const