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 @@ discard """
|
|||
|
||||
# bug #5079
|
||||
|
||||
import tables, strutils
|
||||
import tables
|
||||
|
||||
type Test = ref object
|
||||
s: string
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@ foo = bar # No error if assigned directly
|
|||
|
||||
# bug #2250
|
||||
|
||||
import
|
||||
math, strutils
|
||||
import math
|
||||
|
||||
type
|
||||
Meters = float
|
||||
|
|
|
|||
|
|
@ -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.}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ end
|
|||
"""
|
||||
|
||||
|
||||
import algorithm, math, sequtils, strutils
|
||||
import sequtils, strutils
|
||||
|
||||
|
||||
block t338:
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import typetraits
|
||||
|
||||
template reject(e) =
|
||||
static: assert(not compiles(e))
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
output: "3"
|
||||
"""
|
||||
import StrUtils, Math
|
||||
import math
|
||||
|
||||
proc FibonacciA(n: int): int64 =
|
||||
var fn = float64(n)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue