(self)
| 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 必须能切出原文 |
nothing calls this directly
no test coverage detected