pidgin: ce52a4af: More tests, some with an international f...

markdoliner at pidgin.im markdoliner at pidgin.im
Fri Jul 10 14:55:23 EDT 2009


-----------------------------------------------------------------
Revision: ce52a4af6787aad5221596cca9b17c86441bad96
Ancestor: 3b27bba79b515334a330931ff490d75e2d3787de
Author: markdoliner at pidgin.im
Date: 2009-07-10T18:51:18
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ce52a4af6787aad5221596cca9b17c86441bad96

Modified files:
        libpurple/tests/test_jabber_jutil.c

ChangeLog: 

More tests, some with an international flavor.  I have no idea what that
string means... I just copied it from an email

-------------- next part --------------
============================================================
--- libpurple/tests/test_jabber_jutil.c	d4bb72464a3e1758fee94cf7663b129384f0ac82
+++ libpurple/tests/test_jabber_jutil.c	3c0ea5f94d7c42751e2be32201dda36b0498caad
@@ -91,6 +91,9 @@ START_TEST(test_jabber_id_new)
 	assert_valid_jid("mark.doliner at gmail.com/Test12345");
 	assert_valid_jid("mark.doliner at gmail.com/Test at 12345");
 	assert_valid_jid("mark.doliner at gmail.com/Te/st at 12@//345");
+	assert_valid_jid("???@conference.jabber.org");
+	assert_valid_jid("?????@conference.jabber.org");
+	assert_valid_jid("mark.doliner at gmail.com/?????");
 
 	assert_invalid_jid("@gmail.com");
 	assert_invalid_jid("@@gmail.com");
@@ -100,6 +103,11 @@ START_TEST(test_jabber_id_new)
 	assert_invalid_jid("/Test at 12345");
 	assert_invalid_jid("mark.doliner@");
 	assert_invalid_jid("mark.doliner/");
+	assert_valid_jid("mark.doliner at gmail_stuff.org");
+	assert_valid_jid("mark.doliner at gmail[stuff.org");
+	assert_valid_jid("mark.doliner at gmail/stuff.org");
+	assert_valid_jid("mark.doliner at gmail\\stuff.org");
+	assert_valid_jid("mark.doliner@???.org");
 }
 END_TEST
 


More information about the Commits mailing list