Mercurial > pidgin
changeset 27457:3599729ce9ce
More tests, some with an international flavor. I have no idea what that
string means... I just copied it from an email
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 10 Jul 2009 18:51:18 +0000 |
parents | 04d8452dee48 |
children | 048550ab13a4 |
files | libpurple/tests/test_jabber_jutil.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/tests/test_jabber_jutil.c Fri Jul 10 18:41:56 2009 +0000 +++ b/libpurple/tests/test_jabber_jutil.c Fri Jul 10 18:51:18 2009 +0000 @@ -91,6 +91,9 @@ assert_valid_jid("mark.doliner@gmail.com/Test12345"); assert_valid_jid("mark.doliner@gmail.com/Test@12345"); assert_valid_jid("mark.doliner@gmail.com/Te/st@12@//345"); + assert_valid_jid("わいど@conference.jabber.org"); + assert_valid_jid("まりるーむ@conference.jabber.org"); + assert_valid_jid("mark.doliner@gmail.com/まりるーむ"); assert_invalid_jid("@gmail.com"); assert_invalid_jid("@@gmail.com"); @@ -100,6 +103,11 @@ assert_invalid_jid("/Test@12345"); assert_invalid_jid("mark.doliner@"); assert_invalid_jid("mark.doliner/"); + assert_valid_jid("mark.doliner@gmail_stuff.org"); + assert_valid_jid("mark.doliner@gmail[stuff.org"); + assert_valid_jid("mark.doliner@gmail/stuff.org"); + assert_valid_jid("mark.doliner@gmail\\stuff.org"); + assert_valid_jid("mark.doliner@わいど.org"); } END_TEST