Mercurial > pidgin.yaz
changeset 28084:42359a734696
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
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 31 Jul 2009 00:48:16 +0000 |
parents | 63fa5bde1bf6 |
children | 37141b94d568 |
files | libpurple/tests/Makefile.am libpurple/tests/check_libpurple.c libpurple/tests/tests.h |
diffstat | 3 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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" */
--- 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 */