Add vCard X-label tests
This commit is contained in:
@@ -116,6 +116,7 @@ const VCARD_VARIANTS: &[fn(usize) -> String] = &[
|
||||
vcard_v4_with_address,
|
||||
vcard_v4_nickname,
|
||||
vcard_v4_birthday,
|
||||
vcard_v3_apple_item_labels,
|
||||
];
|
||||
|
||||
fn synth_vcards(n: usize) -> Vec<RawFixture> {
|
||||
@@ -240,6 +241,22 @@ fn vcard_v4_birthday(i: usize) -> String {
|
||||
)
|
||||
}
|
||||
|
||||
fn vcard_v3_apple_item_labels(i: usize) -> String {
|
||||
format!(
|
||||
"BEGIN:VCARD\r\n\
|
||||
VERSION:3.0\r\n\
|
||||
UID:vandelay-card-ablabels-{i}\r\n\
|
||||
FN:Apple Labels {i}\r\n\
|
||||
N:Contact{i};AppleLabels;;;\r\n\
|
||||
EMAIL;TYPE=INTERNET:ablabels-{i}@vandelay.test\r\n\
|
||||
ITEM1.X-ABLABEL:Name1\r\n\
|
||||
ITEM2.X-ABLABEL:Name2\r\n\
|
||||
ITEM1.X-ABDATE:20171111\r\n\
|
||||
ITEM2.X-ABDATE:20111111\r\n\
|
||||
END:VCARD\r\n"
|
||||
)
|
||||
}
|
||||
|
||||
const ICAL_VARIANTS: &[fn(usize) -> String] = &[
|
||||
ical_simple_dt,
|
||||
ical_all_day,
|
||||
|
||||
Reference in New Issue
Block a user