mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 09:59:23 +00:00
Added more person parsing tests.
This commit is contained in:
parent
5a386e4d0a
commit
b76d984e0b
@ -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 ");
|
||||
|
Loading…
Reference in New Issue
Block a user