diff --git a/tests/helpers.nim b/tests/helpers.nim index 830c531..eafda82 100644 --- a/tests/helpers.nim +++ b/tests/helpers.nim @@ -1,5 +1,4 @@ import std/strutils func flatten*(s: string): string = - s.replace(" ") - .replace("\n") \ No newline at end of file + s.replace(" ").replace("\n") diff --git a/tests/json/testDeserialize.nim b/tests/json/testDeserialize.nim index 564691f..bcab995 100644 --- a/tests/json/testDeserialize.nim +++ b/tests/json/testDeserialize.nim @@ -189,14 +189,14 @@ suite "json serialization - deserialize": check deserialized.myint == expected.myint suite "deserialize from string": - test "deserializes objects from string": type MyObj = object mystring: string myint: int let expected = MyObj(mystring: "abc", myint: 1) - let myObjJson = """{ + let myObjJson = + """{ "mystring": "abc", "myint": 1 }""" @@ -209,7 +209,8 @@ suite "deserialize from string": myint: int let expected = MyRef(mystring: "abc", myint: 1) - let myRefJson = """{ + let myRefJson = + """{ "mystring": "abc", "myint": 1 }""" @@ -224,7 +225,8 @@ suite "deserialize from string": myint: int let expected = @[MyObj(mystring: "abc", myint: 1)] - let myObjsJson = """[{ + let myObjsJson = + """[{ "mystring": "abc", "myint": 1 }]""" @@ -237,7 +239,8 @@ suite "deserialize from string": myint: int let expected = some MyObj(mystring: "abc", myint: 1) - let myObjJson = """{ + let myObjJson = + """{ "mystring": "abc", "myint": 1 }""" diff --git a/tests/test.nim b/tests/test.nim index 760b01b..7bd155f 100644 --- a/tests/test.nim +++ b/tests/test.nim @@ -4,4 +4,4 @@ import ./json/testPragmas import ./json/testSerialize import ./json/testSerializeModes -{.warning[UnusedImport]:off.} +{.warning[UnusedImport]: off.}