From 358f66f34d1228ee71142927cd230549a4364ce9 Mon Sep 17 00:00:00 2001 From: jsphuebner Date: Thu, 27 Jul 2023 17:39:38 +0200 Subject: [PATCH] Had forgotten to call TestSetup() --- test/test_main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_main.cpp b/test/test_main.cpp index fba83bd..2f083f4 100644 --- a/test/test_main.cpp +++ b/test/test_main.cpp @@ -25,8 +25,8 @@ using namespace std; int _failedAssertions = 0; -int testIdx = 0; -list testList; +static int testIdx = 0; +static list testList; int main() { @@ -34,7 +34,7 @@ int main() for (UnitTest* currentTest: testList) { - bool allTestsRun = false; + currentTest->TestSetup(); for (VoidFunction testCase: currentTest->GetCases()) { @@ -54,7 +54,7 @@ int main() return 0; } -UnitTest::UnitTest(const std::list* cases) +UnitTest::UnitTest(const list* cases) : _cases(cases) { testList.push_back(this);