changeset 27453:c6fea4ae68b3

Two more JID tests.
author Paul Aurich <paul@darkrain42.org>
date Fri, 10 Jul 2009 06:07:27 +0000
parents 2131abd387f9
children 1b580473e753
files libpurple/tests/test_jabber_jutil.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/tests/test_jabber_jutil.c	Fri Jul 10 05:40:08 2009 +0000
+++ b/libpurple/tests/test_jabber_jutil.c	Fri Jul 10 06:07:27 2009 +0000
@@ -85,12 +85,14 @@
 	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@alkjaweflkj");
 	assert_valid_jid("mark.doliner@gmail.com");
 	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_invalid_jid("@gmail.com");
 	assert_invalid_jid("@@gmail.com");
 	assert_invalid_jid("mark.doliner@@gmail.com/Test12345");
 	assert_invalid_jid("mark@doliner@gmail.com/Test12345");