pidgin: ba489b13: Two more JID tests.

darkrain42 at pidgin.im darkrain42 at pidgin.im
Fri Jul 10 02:10:39 EDT 2009


-----------------------------------------------------------------
Revision: ba489b13636a0bd7fa86f2ceacfe8107534adf16
Ancestor: 9bbf4ea868efa2d87ba6c87151f14f7537d1b159
Author: darkrain42 at pidgin.im
Date: 2009-07-10T06:07:27
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ba489b13636a0bd7fa86f2ceacfe8107534adf16

Modified files:
        libpurple/tests/test_jabber_jutil.c

ChangeLog: 

Two more JID tests.

-------------- next part --------------
============================================================
--- libpurple/tests/test_jabber_jutil.c	1d46144cbefde21185a322c285185cafec13935d
+++ libpurple/tests/test_jabber_jutil.c	d4bb72464a3e1758fee94cf7663b129384f0ac82
@@ -85,12 +85,14 @@ START_TEST(test_jabber_id_new)
 	assert_valid_jid("gmail.com");
 	assert_valid_jid("gmail.com/Test");
 	assert_valid_jid("gmail.com/Test@");
+	assert_valid_jid("gmail.com/@");
 	assert_valid_jid("gmail.com/Test at alkjaweflkj");
 	assert_valid_jid("mark.doliner at gmail.com");
 	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_invalid_jid("@gmail.com");
 	assert_invalid_jid("@@gmail.com");
 	assert_invalid_jid("mark.doliner@@gmail.com/Test12345");
 	assert_invalid_jid("mark at doliner@gmail.com/Test12345");


More information about the Commits mailing list