Skip to content

Commit

Permalink
Test: added two tests cases for merging on specific attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbideau committed Nov 1, 2020
1 parent c4677c2 commit 5dd69d2
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
BEGIN:VCARD
VERSION:3.0
ADR;TYPE=WORK,PREF:;;100 Waters Edge;Baytown;LA;30314;United States of Amer
ica
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
EMAIL:[email protected]
FN:Mr Forrest Gump
LABEL;CHARSET=UTF-8;TYPE=WORK,PREF:100 Waters Edge\nBaytown\, LA 30314\nUni
ted States of America
LABEL;CHARSET=UTF-8;TYPE=HOME:42 Plantation St.\nBaytown\, LA 30314\nUnited
States of America
N:Gump;Mr Forrest;;;
ORG:Bubba Gump Shrimp Co.
PHOTO;TYPE=GIF;VALUE=URI:http://www.example.com/dir_photos/my_photo.gif
REV:2008-04-24T19:52:43Z
TEL;TYPE=WORK,VOICE:(111)555-1212
TEL;TYPE=HOME,VOICE:(404)555-1212
TITLE:Shrimp Man
END:VCARD
1 change: 1 addition & 0 deletions test/cases/Merging by default attributes/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--merge
18 changes: 18 additions & 0 deletions test/cases/Merging by default attributes/src/Forrest_Gump.v2.1.vcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
BEGIN:VCARD
VERSION:2.1
N:Gump;Forrest;;Mr.
FN:Forrest Gump
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
PHOTO;GIF:http://www.example.com/dir_photos/my_photo.gif
TEL;WORK;VOICE:(111) 555-1212
TEL;HOME;VOICE:(404) 555-1212
ADR;WORK;PREF:;;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;WORK;PREF;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:100 Waters Edge=0D=
=0ABaytown\, LA 30314=0D=0AUnited States of America
ADR;HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:42 Plantation St.=0D=0A=
Baytown, LA 30314=0D=0AUnited States of America
EMAIL:[email protected]
REV:20080424T195243Z
END:VCARD
16 changes: 16 additions & 0 deletions test/cases/Merging by default attributes/src/Forrest_Gump.v3.0.vcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BEGIN:VCARD
VERSION:3.0
N:Gump;Forrest;;Mr.;
FN:Forrest Gump
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
PHOTO;VALUE=URI;TYPE=GIF:http://www.example.com/dir_photos/my_photo.gif
TEL;TYPE=WORK,VOICE:(111) 555-1212
TEL;TYPE=HOME,VOICE:(404) 555-1212
ADR;TYPE=WORK,PREF:;;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;TYPE=WORK,PREF:100 Waters Edge\nBaytown\, LA 30314\nUnited States of America
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;TYPE=HOME:42 Plantation St.\nBaytown\, LA 30314\nUnited States of America
EMAIL:[email protected]
REV:2008-04-24T19:52:43Z
END:VCARD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
BEGIN:VCARD
VERSION:3.0
ADR;TYPE=WORK,PREF:;;100 Waters Edge;Baytown;LA;30314;United States of Amer
ica
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
EMAIL:[email protected]
FN:Mr Forrest Gump
LABEL;CHARSET=UTF-8;TYPE=WORK,PREF:100 Waters Edge\nBaytown\, LA 30314\nUni
ted States of America
LABEL;CHARSET=UTF-8;TYPE=HOME:42 Plantation St.\nBaytown\, LA 30314\nUnited
States of America
N:Gump;Mr Forrest;;;
ORG:Bubba Gump Shrimp Co.
PHOTO;TYPE=GIF;VALUE=URI:http://www.example.com/dir_photos/my_photo.gif
REV:2008-04-24T19:52:43Z
TEL;TYPE=WORK,VOICE:(111)555-1212
TEL;TYPE=HOME,VOICE:(404)555-1212
TITLE:Shrimp Man
END:VCARD
1 change: 1 addition & 0 deletions test/cases/Merging by single attributes/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--merge -a email --no-match-approx
18 changes: 18 additions & 0 deletions test/cases/Merging by single attributes/src/Forrest_Gump.v2.1.vcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
BEGIN:VCARD
VERSION:2.1
N:Gump;Forrest;;Mr.
FN:Forrest Gump
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
PHOTO;GIF:http://www.example.com/dir_photos/my_photo.gif
TEL;WORK;VOICE:(111) 555-1212
TEL;HOME;VOICE:(404) 555-1212
ADR;WORK;PREF:;;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;WORK;PREF;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:100 Waters Edge=0D=
=0ABaytown\, LA 30314=0D=0AUnited States of America
ADR;HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:42 Plantation St.=0D=0A=
Baytown, LA 30314=0D=0AUnited States of America
EMAIL:[email protected]
REV:20080424T195243Z
END:VCARD
16 changes: 16 additions & 0 deletions test/cases/Merging by single attributes/src/Forrest_Gump.v3.0.vcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BEGIN:VCARD
VERSION:3.0
N:Gump;Forrest;;Mr.;
FN:Forrest Gump
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
PHOTO;VALUE=URI;TYPE=GIF:http://www.example.com/dir_photos/my_photo.gif
TEL;TYPE=WORK,VOICE:(111) 555-1212
TEL;TYPE=HOME,VOICE:(404) 555-1212
ADR;TYPE=WORK,PREF:;;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;TYPE=WORK,PREF:100 Waters Edge\nBaytown\, LA 30314\nUnited States of America
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;TYPE=HOME:42 Plantation St.\nBaytown\, LA 30314\nUnited States of America
EMAIL:[email protected]
REV:2008-04-24T19:52:43Z
END:VCARD

0 comments on commit 5dd69d2

Please sign in to comment.