Add PENDING, COMPLETED, DELETED synthetic tags

Note that DELETED is not tested since we don't yet support deleting
tasks.
This commit is contained in:
Dustin J. Mitchell 2021-06-05 21:10:11 -04:00
parent 0e60bcedaf
commit cf3a053a0e
4 changed files with 45 additions and 7 deletions

View file

@ -403,8 +403,11 @@ mod test {
};
let task = replica.get_task(uuids[0]).unwrap().unwrap();
assert_eq!(task_column(&task, &column, &working_set), s!("+bar +foo"));
assert_eq!(
task_column(&task, &column, &working_set),
s!("+PENDING +bar +foo")
);
let task = replica.get_task(uuids[2]).unwrap().unwrap();
assert_eq!(task_column(&task, &column, &working_set), s!(""));
assert_eq!(task_column(&task, &column, &working_set), s!("+PENDING"));
}
}