clean up imports, unittest2

This commit is contained in:
Jacek Sieka 2021-08-16 08:52:41 +02:00 committed by zah
parent 5213d397f9
commit fcd0eadadd
6 changed files with 13 additions and 7 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
nimcache/
tests/test_all

View File

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

View File

@ -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":

View File

@ -1,6 +1,6 @@
import import
stew/shims/macros, stew/objects, stew/shims/macros, stew/objects,
errors ./errors
type type
DefaultFlavor* = object DefaultFlavor* = object

View File

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

View File

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