MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / parse_markdown_then_lift

Function parse_markdown_then_lift

atomic-canonical/tests/roundtrip.rs:319–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317
318#[test]
319fn parse_markdown_then_lift() {
320 let doc = format!("---\nid: WORD-9\ntitle: \"Doc parse\"\nstatus: backlog\n---\n{BODY}");
321 let (fm, body) = parse_markdown(&doc).unwrap();
322 assert_eq!(fm.get("id").unwrap().as_str(), Some("WORD-9"));
323 let node = lift_intent(&fm, &body).unwrap();
324 assert_eq!(node.human_key, "WORD-9");
325 assert_eq!(node.id, "urn:atomic:intent:word-9");
326 assert_eq!(node.has_acceptance_criterion.len(), 1);
327}
328
329// ── Regression tests for the adversarial-review fixes ────────────────────────
330

Callers

nothing calls this directly

Calls 3

parse_markdownFunction · 0.85
lift_intentFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected