diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-05-24 22:34:05 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-05-24 22:34:05 +0100 |
| commit | 41319d2708bb311b2bd0b82ec310ae985f9b5861 (patch) | |
| tree | 07fc761cbba97b53fe1e6d535f0b10ceb350ce34 /src/unit_tests.cc | |
| parent | ccfb87ecf39592b2cf4fa00cdbd53098594c26f2 (diff) | |
Small refactor in unit tests
Diffstat (limited to 'src/unit_tests.cc')
| -rw-r--r-- | src/unit_tests.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unit_tests.cc b/src/unit_tests.cc index 5faf91a6..68518b51 100644 --- a/src/unit_tests.cc +++ b/src/unit_tests.cc @@ -42,11 +42,11 @@ UnitTest test_diff{[]() } }}; -UnitTest* unit_tests; +UnitTest* UnitTest::list = nullptr; -void run_unit_tests() +void UnitTest::run_all_tests() { - for (const UnitTest* test = unit_tests; test; test = test->next) + for (const UnitTest* test = UnitTest::list; test; test = test->next) test->func(); } |
