mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[quiz] Assert pool size is 0 between quiz cases
This commit is contained in:
@@ -28,7 +28,11 @@ static inline void ion_main_inner() {
|
||||
while (quiz_cases[i] != NULL) {
|
||||
QuizCase c = quiz_cases[i];
|
||||
quiz_print(quiz_case_names[i]);
|
||||
int initialPoolSize = Poincare::TreePool::sharedPool()->numberOfNodes();
|
||||
quiz_assert(initialPoolSize == 0);
|
||||
c();
|
||||
int currentPoolSize = Poincare::TreePool::sharedPool()->numberOfNodes();
|
||||
quiz_assert(initialPoolSize == currentPoolSize);
|
||||
i++;
|
||||
}
|
||||
quiz_print("ALL TESTS FINISHED");
|
||||
|
||||
Reference in New Issue
Block a user