diff options
Diffstat (limited to 'test/unit/context/context_white.h')
-rw-r--r-- | test/unit/context/context_white.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/unit/context/context_white.h b/test/unit/context/context_white.h index 64e6e184b..2c1ef8e71 100644 --- a/test/unit/context/context_white.h +++ b/test/unit/context/context_white.h @@ -29,18 +29,14 @@ private: Context* d_context; -public: + public: + void setUp() override { d_context = new Context; } - void setUp() { - d_context = new Context; - } - - void tearDown() { - delete d_context; - } + void tearDown() override { delete d_context; } - void testContextSimple() { - Scope *s = d_context->getTopScope(); + void testContextSimple() + { + Scope* s = d_context->getTopScope(); TS_ASSERT(s == d_context->getBottomScope()); TS_ASSERT(d_context->getLevel() == 0); |