Unit Tests
- Fixed broken unit test. - Updated PUNCHLIST. - Clarified task counting in helpers.cpp.
This commit is contained in:
@@ -133,7 +133,6 @@ std::string onProjectChange (Task& task, bool scope /* = true */)
|
||||
// Count pending and done tasks, for this project.
|
||||
int count_pending = 0;
|
||||
int count_done = 0;
|
||||
|
||||
std::vector <Task> all = context.tdb2.all_tasks ();
|
||||
countTasks (all, project, count_pending, count_done);
|
||||
|
||||
@@ -197,6 +196,8 @@ static void countTasks (
|
||||
++count_done;
|
||||
break;
|
||||
|
||||
case Task::deleted:
|
||||
case Task::recurring:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user