Commit 70057910 authored by renpengli's avatar renpengli

测试git流程

parent 7f51d099
import pytest
from magic_pdf.libs.commons import mymax
# 输入一个列表,如果列表空返回0,否则返回最大元素
@pytest.mark.parametrize("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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment