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

Method test_single_heading

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

Source from the content-addressed store, hash-verified

42 assert split_blocks("") == []
43
44 def test_single_heading(self):
45 blocks = split_blocks("# Title\n")
46 assert len(blocks) == 1
47 assert blocks[0].kind == "heading"
48 assert blocks[0].level == 1
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")

Callers

nothing calls this directly

Calls 1

split_blocksFunction · 0.90

Tested by

no test coverage detected