aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/tests/vcard/README
blob: 06ae719c5e3d888759840bbab5fcba574e176e65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
This is the list of tests I've been using while writing e-vcard.c.
The parser is all handcrafted, and it's not a validating parser by any
stretch of the imagination.  It tries very hard to deal with any
possible input (it'll even parse rfc822 mail headers and spit out
vCard-ish results.)

Test   : Description
----------------------

1.vcf  : Frank Dawson's vCard from RFC 2426 (missing the required N
         attribute.)

2.vcf  : Tim Howes's vCard from from RFC 2426 (missing the required N
         attribute.)

3.vcf  : Nat's old vCard.

4.vcf  : A vCard containing a canadian address (quoted-printable
        encoded attribute values.)

5.vcf  : A vCard containing utf8 characters quoted-printable encoded.

6.vcf  : A vCard with several errors in attribute parameters:
     line 5: an missing parameter value (a , with nothing after it).
         line 6: a missing parameter name when using multiple
                 values. (this may not be in violation of the rfc.)
     line 7: a missing parameter name when using multiple
                 values. (this may not be in violation of the rfc.)

7.vcf  : A vCard missing its begin:vcard attribute, as well as missing
         the required N attribute.

8.vcf  : A vCard missing its end: vcard attribute, as well as missing
         the required N attribute.

9.vcf  : A vCard that ends (\0) in the middle of an attribute
         name/group.

10.vcf : A vCard with an attribute with more than 1 group specified.

----------------------