summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-07-23 16:01:38 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-07-23 16:01:38 +0200
commitcd42d38887d6c15be42c79b51d86e172f271d5f7 (patch)
tree37a9440f7c32c81d6e2bd2f6074eda59d28673d0
parent46f59a7c598013c28557e239aab1b6e5b187af88 (diff)
parent70f14aa578f7d4aee265a30c785c946266860445 (diff)
downloadNim-cd42d38887d6c15be42c79b51d86e172f271d5f7.tar.gz
Merge pull request #3142 from avsej/fix-unittest
Remove access modifiers from inner templates
-rw-r--r--lib/pure/unittest.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim
index 407db0a51..de52cbbd1 100644
--- a/lib/pure/unittest.nim
+++ b/lib/pure/unittest.nim
@@ -63,10 +63,10 @@ proc shouldRun(testName: string): bool =
 
 template suite*(name: expr, body: stmt): stmt {.immediate, dirty.} =
   block:
-    template setup*(setupBody: stmt): stmt {.immediate, dirty.} =
+    template setup(setupBody: stmt): stmt {.immediate, dirty.} =
       template testSetupIMPL: stmt {.immediate, dirty.} = setupBody
 
-    template teardown*(teardownBody: stmt): stmt {.immediate, dirty.} =
+    template teardown(teardownBody: stmt): stmt {.immediate, dirty.} =
       template testTeardownIMPL: stmt {.immediate, dirty.} = teardownBody
 
     body