# HG changeset patch # User Mark Doliner # Date 1249001296 0 # Node ID 42359a734696a9979d9e0d1c807d3b07cfe11506 # Parent 63fa5bde1bf662c779cb2f889ad5f57a09726fad 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 diff -r 63fa5bde1bf6 -r 42359a734696 libpurple/tests/Makefile.am --- a/libpurple/tests/Makefile.am Fri Jul 31 00:46:38 2009 +0000 +++ b/libpurple/tests/Makefile.am Fri Jul 31 00:48:16 2009 +0000 @@ -11,6 +11,7 @@ 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_LIBS@ \ $(GLIB_LIBS) \ $(top_builddir)/libpurple/protocols/jabber/libjabber.la \ + $(top_builddir)/libpurple/protocols/yahoo/libymsg.la \ $(top_builddir)/libpurple/libpurple.la endif diff -r 63fa5bde1bf6 -r 42359a734696 libpurple/tests/check_libpurple.c --- a/libpurple/tests/check_libpurple.c Fri Jul 31 00:46:38 2009 +0000 +++ b/libpurple/tests/check_libpurple.c Fri Jul 31 00:48:16 2009 +0000 @@ -76,6 +76,7 @@ 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" */ diff -r 63fa5bde1bf6 -r 42359a734696 libpurple/tests/tests.h --- a/libpurple/tests/tests.h Fri Jul 31 00:46:38 2009 +0000 +++ b/libpurple/tests/tests.h Fri Jul 31 00:48:16 2009 +0000 @@ -10,6 +10,7 @@ Suite * master_suite(void); Suite * cipher_suite(void); Suite * jabber_jutil_suite(void); +Suite * yahoo_util_suite(void); Suite * util_suite(void); /* helper macros */