Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
f767d717
Unverified
Commit
f767d717
authored
May 08, 2024
by
myhloli
Committed by
GitHub
May 08, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #101 from renpengli01/master
测试git流程
parents
288bb074
70057910
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
test_unit.py
tests/test_unit.py
+24
-0
No files found.
tests/test_unit.py
0 → 100644
View file @
f767d717
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