MCPcopy Create free account
hub / github.com/Qinbf/groundmap / test_heading_levels

Method test_heading_levels

scripts/tests/test_section_parser.py:51–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 assert blocks[0].title == "Title"
50
51 def test_heading_levels(self):
52 blocks = split_blocks("# A\n\n## B\n\n### C\n")
53 assert [b.kind for b in blocks] == ["heading", "heading", "heading"]
54 assert [b.level for b in blocks] == [1, 2, 3]
55
56 def test_paragraph(self):
57 blocks = split_blocks("Just a paragraph.\n")

Callers

nothing calls this directly

Calls 1

split_blocksFunction · 0.90

Tested by

no test coverage detected