Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: refine test case for frozen soil reference validation by updating document reference and ensuring accurate block type detection

myhlolid34f0bb2d1d0
diff --git "a/demo/pdfs/NPU_\345\274\200\345\217\221\347\216\257\345\242\203\351\203\250\347\275\262_\345\217\202\350\200\203\346\214\207\345\215\227.pdf" "b/demo/pdfs/NPU_\345\274\200\345\217\221\347\216\257\345\242\203\351\203\250\347\275\262_\345\217\202\350\200\203\346\214\207\345\215\227.pdf"
new file mode 100644
index 00000000..64ca6f1e
Binary files /dev/null and "b/demo/pdfs/NPU_\345\274\200\345\217\221\347\216\257\345\242\203\351\203\250\347\275\262_\345\217\202\350\200\203\346\214\207\345\215\227.pdf" differ
diff --git a/tests/unittest/test_flash_pdf_samples.py b/tests/unittest/test_flash_pdf_samples.py
index d59d40fa..5abcaf5a 100644
--- a/tests/unittest/test_flash_pdf_samples.py
+++ b/tests/unittest/test_flash_pdf_samples.py
@@ -1128,9 +1128,7 @@ def test_iebm_left_indented_compact_formula_is_equation() -> None:
def test_frozen_soil_reference_tails_remain_single_text_blocks() -> None:
"""验证完整粉质砂土论文第 9 页的参考文献尾行不误报 equation。"""
- page = _auto_model_list(
- "基于Boosting、Bagging、Stacking与Voting四大集成学习模型的粉质砂土冻土抗剪强度预测研究.pdf"
- )[8]
+ page = _auto_model_list("中文论文.pdf")[8]
assert not [block for block in page if block["type"] == "equation"]
for probe in (