Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
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
lvzhengyang
git2
Commits
b76d984e
Commit
b76d984e
authored
Dec 11, 2010
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more person parsing tests.
parent
5a386e4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
tests/t0401-parse.c
+32
-0
No files found.
tests/t0401-parse.c
View file @
b76d984e
...
...
@@ -195,6 +195,38 @@ BEGIN_TEST(parse_person_test)
12345
,
0
);
TEST_PERSON_PASS
(
"committer Vicent Marti <tanoku@gmail.com> 123456 +0000
\n
"
,
"committer "
,
"Vicent Marti"
,
"tanoku@gmail.com"
,
123456
,
0
);
TEST_PERSON_PASS
(
"committer Vicent Marti <tanoku@gmail.com> 123456 +0100
\n
"
,
"committer "
,
"Vicent Marti"
,
"tanoku@gmail.com"
,
123456
,
60
);
TEST_PERSON_PASS
(
"committer Vicent Marti <tanoku@gmail.com> 123456 -0100
\n
"
,
"committer "
,
"Vicent Marti"
,
"tanoku@gmail.com"
,
123456
,
-
60
);
TEST_PERSON_FAIL
(
"committer Vicent Marti <tanoku@gmail.com> 123456 -1500
\n
"
,
"committer "
);
TEST_PERSON_FAIL
(
"committer Vicent Marti <tanoku@gmail.com> 123456 +0163
\n
"
,
"committer "
);
TEST_PERSON_FAIL
(
"author Vicent Marti <tanoku@gmail.com> 12345
\n
"
,
"author "
);
...
...
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