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
typetraits,
stew/shims/macros, faststreams,
serialization/[object_serialization, errors, formats]
std/typetraits,
stew/shims/macros, faststreams/[inputs, outputs],
./serialization/[object_serialization, errors, formats]
export
faststreams, object_serialization, errors, formats
inputs, outputs, object_serialization, errors, formats
template encode*(Format: type, value: auto, params: varargs[untyped]): auto =
mixin init, Writer, writeValue, PreferredOutputType

View File

@ -9,6 +9,7 @@ skipDirs = @["tests"]
requires "nim >= 1.2.0",
"faststreams",
"unittest2",
"stew"
task test, "Run all tests":

View File

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

View File

@ -1,5 +1,6 @@
import
unittest, times, typetraits, random, strutils, options, sets, tables,
std/[times, typetraits, random, strutils, options, sets, tables],
unittest2,
faststreams/inputs,
../../serialization, ../object_serialization

View File

@ -1,9 +1,11 @@
import
typetraits, unittest,
typetraits, unittest2,
stew/shims/macros, stew/objects,
../serialization/object_serialization,
../serialization/testing/generic_suite
{.used.}
suite "object serialization":
setup:
var fieldsList = newSeq[string]()