(self)
| 134 | assert "doc_paragraphs" in outline |
| 135 | |
| 136 | def test_outline_section_count(self): |
| 137 | text = "# H1\n\n## H2a\n\nbody\n\n## H2b\n\nmore\n" |
| 138 | _, outline = process(text, "test.md") |
| 139 | # 顶层一个 H1 |
| 140 | assert len(outline["sections"]) == 1 |
| 141 | # H1 有两个 H2 子节 |
| 142 | assert len(outline["sections"][0]["children"]) == 2 |
| 143 | |
| 144 | def test_outline_preserves_existing_summaries(self): |
| 145 | """关键不变量(c85d28f 修复的 bug):重跑 build_outline_data |