pidgin: bb62bb7c: Add a super simple test for yahoo_codes_...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Jul 30 20:50:35 EDT 2009


-----------------------------------------------------------------
Revision: bb62bb7ca8974428da09ccd6b06f13788aa42d57
Ancestor: 4f30b02cd62c36bab3ba86febaf41d3530fc6105
Author: markdoliner at pidgin.im
Date: 2009-07-31T00:48:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bb62bb7ca8974428da09ccd6b06f13788aa42d57

Modified files:
        libpurple/tests/Makefile.am
        libpurple/tests/check_libpurple.c libpurple/tests/tests.h

ChangeLog: 

Add a super simple test for yahoo_codes_to_html().  I'm planning on
changing that function to return more standards-compliant HTML
(like closing all opening tags, using lowercase tags, etc), and I
figured it was wise to have a few unit tests for it

-------------- next part --------------
============================================================
--- libpurple/tests/Makefile.am	58c6d66ec639d3058821d9789790660147c1c0a9
+++ libpurple/tests/Makefile.am	3c59fdff6f6f75ee99c6fedaf880b9be325714e6
@@ -11,6 +11,7 @@ check_libpurple_SOURCES=\
 	    tests.h \
 		test_cipher.c \
 		test_jabber_jutil.c \
+		test_yahoo_util.c \
 		test_util.c \
 		$(top_builddir)/libpurple/util.h
 
@@ -27,6 +28,7 @@ check_libpurple_LDADD=\
         @CHECK_LIBS@ \
 		$(GLIB_LIBS) \
 		$(top_builddir)/libpurple/protocols/jabber/libjabber.la \
+		$(top_builddir)/libpurple/protocols/yahoo/libymsg.la \
 		$(top_builddir)/libpurple/libpurple.la
 
 endif
============================================================
--- libpurple/tests/check_libpurple.c	94b2a7f705a7545f83abb7ae785a8cc31b296fc8
+++ libpurple/tests/check_libpurple.c	732ebd80ea0834cd08e7af27d4e595ea52e2ea9f
@@ -76,6 +76,7 @@ int main(void)
 
 	srunner_add_suite(sr, cipher_suite());
 	srunner_add_suite(sr, jabber_jutil_suite());
+	srunner_add_suite(sr, yahoo_util_suite());
 	srunner_add_suite(sr, util_suite());
 
 	/* make this a libpurple "ui" */
============================================================
--- libpurple/tests/tests.h	ebe05f1f96474e714fc4148e8cc6d73d61c6bcdb
+++ libpurple/tests/tests.h	44fe168b2432ff2dee4157c3be7b891a4203e635
@@ -10,6 +10,7 @@ Suite * jabber_jutil_suite(void);
 Suite * master_suite(void);
 Suite * cipher_suite(void);
 Suite * jabber_jutil_suite(void);
+Suite * yahoo_util_suite(void);
 Suite * util_suite(void);
 
 /* helper macros */


More information about the Commits mailing list