Skip to content

Commit

Permalink
Had forgotten to call TestSetup()
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphuebner committed Jul 27, 2023
1 parent b686d22 commit 358f66f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
using namespace std;

int _failedAssertions = 0;
int testIdx = 0;
list<UnitTest*> testList;
static int testIdx = 0;
static list<UnitTest*> testList;

int main()
{
cout << "Starting unit Tests" << endl;

for (UnitTest* currentTest: testList)
{
bool allTestsRun = false;
currentTest->TestSetup();

for (VoidFunction testCase: currentTest->GetCases())
{
Expand All @@ -54,7 +54,7 @@ int main()
return 0;
}

UnitTest::UnitTest(const std::list<VoidFunction>* cases)
UnitTest::UnitTest(const list<VoidFunction>* cases)
: _cases(cases)
{
testList.push_back(this);
Expand Down

0 comments on commit 358f66f

Please sign in to comment.