use 'skipNothing' as default param to 'jsonTest'

This commit is contained in:
andri lim 2019-11-21 00:07:17 +07:00
parent 2057f88dba
commit d2b5e1a26d
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
4 changed files with 4 additions and 4 deletions

View File

@ -65,7 +65,7 @@ proc lacksSupportedForks*(fixtures: JsonNode): bool =
var status = initOrderedTable[string, OrderedTable[string, Status]]()
macro jsonTest*(s: static[string], handler: untyped, skipTest: untyped): untyped =
macro jsonTest*(s: static[string], handler: untyped, skipTest: untyped = skipNothing): untyped =
let
testStatusIMPL = ident("testStatusIMPL")
testName = ident("testName")

View File

@ -40,4 +40,4 @@ proc testFixture(node: JsonNode, testStatusIMPL: var TestStatus) =
proc persistBlockJsonMain*() =
suite "persist block json tests":
jsonTest("PersistBlockTests", testFixture, skipNothing)
jsonTest("PersistBlockTests", testFixture)

View File

@ -102,7 +102,7 @@ const blake2InputTests = [
proc precompilesMain*() =
suite "Precompiles":
jsonTest("PrecompileTests", testFixture, skipNothing)
jsonTest("PrecompileTests", testFixture)
suite "blake2bf":
var output: array[64, byte]

View File

@ -14,7 +14,7 @@ proc testFixture(node: JsonNode, testStatusIMPL: var TestStatus)
proc tracerJsonMain*() =
suite "tracer json tests":
jsonTest("TracerTests", testFixture, skipNothing)
jsonTest("TracerTests", testFixture)
# use tracerTestGen.nim to generate additional test data
proc testFixture(node: JsonNode, testStatusIMPL: var TestStatus) =