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

Method test_code_fence

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

Source from the content-addressed store, hash-verified

69 assert blocks[0].kind == "blockquote"
70
71 def test_code_fence(self):
72 blocks = split_blocks("```python\nprint(1)\n```\n")
73 assert len(blocks) == 1
74 assert blocks[0].kind == "code"
75
76 def test_code_fence_with_heading_inside_not_recognized(self):
77 # 围栏内的 # 不应被识别为 heading

Callers

nothing calls this directly

Calls 1

split_blocksFunction · 0.90

Tested by

no test coverage detected