comparison libpurple/tests/test_util.c @ 30617:b8782b02330d

Catch some more invalid email addresses, thanks to Mark for additional tests (not that I agree with all of them)
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 15 Jun 2010 01:28:17 +0000
parents 72d9caae4406
children e5101d9cbaaa
comparison
equal deleted inserted replaced
30615:72d9caae4406 30617:b8782b02330d
107 "missingDot@com", 107 "missingDot@com",
108 "two@@signs.com", 108 "two@@signs.com",
109 "colonButNoPort@127.0.0.1:", 109 "colonButNoPort@127.0.0.1:",
110 "" 110 ""
111 /* "someone-else@127.0.0.1.26", */ 111 /* "someone-else@127.0.0.1.26", */
112 /* ".localStartsWithDot@domain.com", */ 112 ".localStartsWithDot@domain.com",
113 /* "localEndsWithDot.@domain.com", */ 113 /* "localEndsWithDot.@domain.com", */ /* I don't think this is invalid -- Stu */
114 /* "two..consecutiveDots@domain.com", */ 114 /* "two..consecutiveDots@domain.com", */ /* I don't think this is invalid -- Stu */
115 /* "domainStartsWithDash@-domain.com", */ 115 "domainStartsWithDash@-domain.com",
116 "domainEndsWithDash@domain-.com", 116 "domainEndsWithDash@domain-.com",
117 /* "numbersInTLD@domain.c0m", */ 117 /* "numbersInTLD@domain.c0m", */
118 /* "missingTLD@domain.", */ 118 /* "missingTLD@domain.", */ /* This certainly isn't invalid -- Stu */
119 "! \"#$%(),/;<>[]`|@invalidCharsInLocal.org", 119 "! \"#$%(),/;<>[]`|@invalidCharsInLocal.org",
120 "invalidCharsInDomain@! \"#$%(),/;<>_[]`|.org", 120 "invalidCharsInDomain@! \"#$%(),/;<>_[]`|.org",
121 /* "local@SecondLevelDomainNamesAreInvalidIfTheyAreLongerThan64Charactersss.org" */ 121 /* "local@SecondLevelDomainNamesAreInvalidIfTheyAreLongerThan64Charactersss.org" */
122 }; 122 };
123 123