clean up imports, unittest2
This commit is contained in:
parent
5213d397f9
commit
fcd0eadadd
|
@ -0,0 +1,2 @@
|
||||||
|
nimcache/
|
||||||
|
tests/test_all
|
|
@ -1,10 +1,10 @@
|
||||||
import
|
import
|
||||||
typetraits,
|
std/typetraits,
|
||||||
stew/shims/macros, faststreams,
|
stew/shims/macros, faststreams/[inputs, outputs],
|
||||||
serialization/[object_serialization, errors, formats]
|
./serialization/[object_serialization, errors, formats]
|
||||||
|
|
||||||
export
|
export
|
||||||
faststreams, object_serialization, errors, formats
|
inputs, outputs, object_serialization, errors, formats
|
||||||
|
|
||||||
template encode*(Format: type, value: auto, params: varargs[untyped]): auto =
|
template encode*(Format: type, value: auto, params: varargs[untyped]): auto =
|
||||||
mixin init, Writer, writeValue, PreferredOutputType
|
mixin init, Writer, writeValue, PreferredOutputType
|
||||||
|
|
|
@ -9,6 +9,7 @@ skipDirs = @["tests"]
|
||||||
|
|
||||||
requires "nim >= 1.2.0",
|
requires "nim >= 1.2.0",
|
||||||
"faststreams",
|
"faststreams",
|
||||||
|
"unittest2",
|
||||||
"stew"
|
"stew"
|
||||||
|
|
||||||
task test, "Run all tests":
|
task test, "Run all tests":
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
stew/shims/macros, stew/objects,
|
stew/shims/macros, stew/objects,
|
||||||
errors
|
./errors
|
||||||
|
|
||||||
type
|
type
|
||||||
DefaultFlavor* = object
|
DefaultFlavor* = object
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import
|
import
|
||||||
unittest, times, typetraits, random, strutils, options, sets, tables,
|
std/[times, typetraits, random, strutils, options, sets, tables],
|
||||||
|
unittest2,
|
||||||
faststreams/inputs,
|
faststreams/inputs,
|
||||||
../../serialization, ../object_serialization
|
../../serialization, ../object_serialization
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
import
|
import
|
||||||
typetraits, unittest,
|
typetraits, unittest2,
|
||||||
stew/shims/macros, stew/objects,
|
stew/shims/macros, stew/objects,
|
||||||
../serialization/object_serialization,
|
../serialization/object_serialization,
|
||||||
../serialization/testing/generic_suite
|
../serialization/testing/generic_suite
|
||||||
|
|
||||||
|
{.used.}
|
||||||
|
|
||||||
suite "object serialization":
|
suite "object serialization":
|
||||||
setup:
|
setup:
|
||||||
var fieldsList = newSeq[string]()
|
var fieldsList = newSeq[string]()
|
||||||
|
|
Loading…
Reference in New Issue