()
| 580 | |
| 581 | #[test] |
| 582 | fn task_satisfies_single_criterion() { |
| 583 | let body = ":::task{#WORD-5-1 status=done satisfies=WORD-5-ac-1}\nDo the thing.\n:::"; |
| 584 | let node = lift_intent(&fm(), body).unwrap(); |
| 585 | assert_eq!(node.has_task.len(), 1); |
| 586 | assert_eq!( |
| 587 | node.has_task[0].satisfies.as_slice(), |
| 588 | vec!["urn:atomic:ac:WORD-5-ac-1".to_string()] |
| 589 | ); |
| 590 | } |
| 591 | |
| 592 | #[test] |
| 593 | fn task_satisfies_multiple_criteria_via_criteria_alias() { |
nothing calls this directly
no test coverage detected