Skip to content

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

测试git流程

renpengli7005791026a7
diff --git a/tests/test_unit.py b/tests/test_unit.py
new file mode 100644
index 00000000..a888d242
--- /dev/null
+++ b/tests/test_unit.py
@@ -0,0 +1,24 @@
+import pytest
+
+from magic_pdf.libs.commons import mymax
+
+
+# 输入一个列表,如果列表空返回0,否则返回最大元素
[email protected]("list_input",
+ [
+ # [0, 0, 0, 0],
+ # [(1, 2), (3, 4), (1, 4)],
+ # [0],
+ [1, 2, 5, 8, 4],
+ # [],
+ # ["None", "True"]
+ ])
+def test_list_max(list_input: list):
+ """
+ list_input: 输入列表元素
+ """
+ assert "True" == mymax(list_input)
+
+
+
+