fix: Befunde aus der QA-Prüfung (Prompt_Kontrolle.md)
- F1: Nicht beschreibbares Ausgabeziel liefert eine verständliche Meldung und Exit 1 statt "Interner Fehler" (Exit 4). - F2: Anker von <dt id> stehen vor dem fett gesetzten Glossarbegriff statt innerhalb der **-Marker. - F3: Formeln als <img src="*.svg"> erscheinen im Bericht mit origin "svg" statt "image". Regressionstests für alle drei Befunde ergänzt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
02449734a2
commit
3b07fcf01a
1 changed files with 54 additions and 13 deletions
|
|
@ -97,3 +97,10 @@ def test_math_image_mode(convert):
|
|||
assert text.count("![") == 3 # svg + both formula images
|
||||
assert "<math" in text # pure MathML without image is not lost
|
||||
assert any(w["code"] == "mathml-no-image" for w in run.report["warnings"])
|
||||
|
||||
|
||||
def test_svg_file_formula_is_reported_as_svg(convert):
|
||||
"""QA-F3: <img src="*.svg"> inside a formula container is an SVG formula in the report."""
|
||||
report = convert(math_book()).report
|
||||
origins = {f["origin"] for f in report["formulas"]["items"]}
|
||||
assert "svg" in origins
|
||||
|
|
|
|||
Loading…
Reference in a new issue