()
| 700 | |
| 701 | #[test] |
| 702 | fn lifts_inline_ref_from_why_prose() { |
| 703 | let body = ":::why\nLocal-only per :ref[the storage constraint]{to=urn:atomic:memory:01J8ZC edge=depends}, not a profile system.\n:::"; |
| 704 | let node = lift_intent(&fm(), body).unwrap(); |
| 705 | // The reason keeps the inline mention verbatim… |
| 706 | assert!(node |
| 707 | .why |
| 708 | .as_deref() |
| 709 | .unwrap() |
| 710 | .contains(":ref[the storage constraint]")); |
| 711 | // …and the edge lands on the dependency chain, typed and validated. |
| 712 | assert_eq!(node.depends_on.len(), 1); |
| 713 | assert_eq!(node.depends_on[0].to, "urn:atomic:memory:01J8ZC"); |
| 714 | assert_eq!(node.depends_on[0].edge, "depends"); |
| 715 | } |
| 716 | |
| 717 | #[test] |
| 718 | fn inline_ref_with_bad_edge_is_error() { |
nothing calls this directly
no test coverage detected