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

Method test_mixed

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

Source from the content-addressed store, hash-verified

96 assert blocks[0].kind == "hr"
97
98 def test_mixed(self):
99 text = "# Title\n\nIntro paragraph.\n\n## Section\n\n- item 1\n- item 2\n"
100 blocks = split_blocks(text)
101 kinds = [b.kind for b in blocks]
102 assert kinds == ["heading", "paragraph", "heading", "list"]
103
104 def test_char_offsets_align(self):
105 # split_blocks 报的 char_start/char_end 必须能切出原文

Callers

nothing calls this directly

Calls 1

split_blocksFunction · 0.90

Tested by

no test coverage detected