From 70f14aa578f7d4aee265a30c785c946266860445 Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Thu, 23 Jul 2015 17:00:04 +0300 Subject: [PATCH] Remove access modifiers from inner templates Fixes options.nim tests --- lib/pure/unittest.nim | 4 ++-- 1 file 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