A `done` task satisfying the given criteria.
(id: &str, satisfies: &[&str])
| 551 | |
| 552 | /// A `done` task satisfying the given criteria. |
| 553 | fn done_task(id: &str, satisfies: &[&str]) -> Task { |
| 554 | let mut t = task(id, satisfies); |
| 555 | t.task_status = "done".to_string(); |
| 556 | t |
| 557 | } |
| 558 | |
| 559 | #[test] |
| 560 | fn gate_accepts_done_intent_with_many_tasks_and_criteria_all_complete() { |