"""Regression guard for the README title presentation. The original ASCII-art banner needed a code fence to preserve whitespace. Publication now opens with a centered text heading after omitting the wordmark artwork. Keep the title identity and the historical ASCII-fencing guard. """ from pathlib import Path README = Path(__file__).resolve().parent.parent / "README.md" # Box-drawing rule from the legacy ASCII banner (the #1390 failure mode). _RULE = "─" * 10 def _fenced_segments(text: str): """Return the segments of *text* that sit INSIDE ``` fences.""" parts = text.split("```") # parts[0] is before the first fence, parts[1] is inside the first fence, ... return parts[1::2] def test_readme_opens_with_text_title(): head = "\n".join(README.read_text(encoding="utf-8").splitlines()[:15]) assert head.startswith('