()
| 262 | |
| 263 | |
| 264 | def test_docx_equations() -> None: |
| 265 | markitdown = MarkItDown() |
| 266 | docx_file = os.path.join(TEST_FILES_DIR, "equations.docx") |
| 267 | result = markitdown.convert(docx_file) |
| 268 | |
| 269 | # Check for inline equation m=1 (wrapped with single $) is present |
| 270 | assert "$m=1$" in result.text_content, "Inline equation $m=1$ not found" |
| 271 | |
| 272 | # Find block equations wrapped with double $$ and check if they are present |
| 273 | block_equations = re.findall(r"\$\$(.+?)\$\$", result.text_content) |
| 274 | assert block_equations, "No block equations found in the document." |
| 275 | |
| 276 | |
| 277 | def test_input_as_strings() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…