Fix defect found testing EMAIL content types.

This commit is contained in:
2023-04-10 16:10:20 -05:00
parent 2a48974f3a
commit a0cd676521
3 changed files with 40 additions and 4 deletions

View File

@@ -53,3 +53,11 @@ suite "vcard/vcard3":
vcards[0].fn.value == "Frank Dawson"
vcards[0].email.len == 2
(vcards[0].email --> find(it.emailType.contains("PREF"))).isSome
test "Jonathan Bernard VCard":
#const jdbVcard = readFile("tests/jdb.vcf")
let jdb = parseVCard3File("tests/jdb.vcf")[0]
check:
jdb.email.len == 7
jdb.email[0].value == "jonathan@jdbernard.com"
jdb.fn.value == "Jonathan Bernard"