()
| 406 | |
| 407 | #[test] |
| 408 | fn task_satisfies_single_criterion() { |
| 409 | let body = ":::task{#WORD-5-1 status=done satisfies=WORD-5-ac-1}\nDo the thing.\n:::"; |
| 410 | let node = lift_intent(&fm(), body).unwrap(); |
| 411 | assert_eq!(node.has_task.len(), 1); |
| 412 | assert_eq!( |
| 413 | node.has_task[0].satisfies.as_slice(), |
| 414 | vec!["urn:atomic:ac:WORD-5-ac-1".to_string()] |
| 415 | ); |
| 416 | } |
| 417 | |
| 418 | #[test] |
| 419 | fn task_satisfies_multiple_criteria_via_criteria_alias() { |
nothing calls this directly
no test coverage detected