From d2b5e1a26d85cc380b7497286b3ca30e50014a7c Mon Sep 17 00:00:00 2001 From: andri lim Date: Thu, 21 Nov 2019 00:07:17 +0700 Subject: [PATCH] use 'skipNothing' as default param to 'jsonTest' --- tests/test_helpers.nim | 2 +- tests/test_persistblock_json.nim | 2 +- tests/test_precompiles.nim | 2 +- tests/test_tracer_json.nim | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_helpers.nim b/tests/test_helpers.nim index 27873c3de..0fcb10489 100644 --- a/tests/test_helpers.nim +++ b/tests/test_helpers.nim @@ -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") diff --git a/tests/test_persistblock_json.nim b/tests/test_persistblock_json.nim index 9a867452f..d05b3dd4e 100644 --- a/tests/test_persistblock_json.nim +++ b/tests/test_persistblock_json.nim @@ -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) diff --git a/tests/test_precompiles.nim b/tests/test_precompiles.nim index 3917e9f1b..5652c4764 100644 --- a/tests/test_precompiles.nim +++ b/tests/test_precompiles.nim @@ -102,7 +102,7 @@ const blake2InputTests = [ proc precompilesMain*() = suite "Precompiles": - jsonTest("PrecompileTests", testFixture, skipNothing) + jsonTest("PrecompileTests", testFixture) suite "blake2bf": var output: array[64, byte] diff --git a/tests/test_tracer_json.nim b/tests/test_tracer_json.nim index 262bb657b..f1de13982 100644 --- a/tests/test_tracer_json.nim +++ b/tests/test_tracer_json.nim @@ -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) =