Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
2932db30
Commit
2932db30
authored
May 08, 2024
by
赵小蒙
Browse files
Merge remote-tracking branch 'origin/master'
parents
deb98fd0
f767d717
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
tests/test_unit.py
tests/test_unit.py
+24
-0
No files found.
tests/test_unit.py
0 → 100644
View file @
2932db30
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment