# HG changeset patch # User Stu Tomlinson # Date 1194490032 0 # Node ID dada0e6416cc9c7eb5c1375d7dd8a348be85fce3 # Parent 50970c85709a71517f8d84f243b726e70e4edae1# Parent 1dd6704cd1872ff9a70b38d729915f483c7b25e2 merge of 'eb14385d2f3d84e0bdd1b158200baa76f86da3a2' and 'ff5b50d410a4c5d305fbbaacab5465581332c254' diff -r 50970c85709a -r dada0e6416cc libpurple/tests/test_util.c --- a/libpurple/tests/test_util.c Wed Nov 07 17:22:36 2007 +0000 +++ b/libpurple/tests/test_util.c Thu Nov 08 02:47:12 2007 +0000 @@ -81,6 +81,18 @@ } END_TEST +START_TEST(test_markup_html_to_xhtml) +{ + gchar *xhtml = NULL; + gchar *plaintext = NULL; + purple_markup_html_to_xhtml("", &xhtml, &plaintext); + fail_unless(strcmp("", xhtml) == 0, NULL); + g_free(xhtml); + fail_unless(strcmp("", plaintext) == 0, NULL); + g_free(plaintext); +} +END_TEST + Suite * util_suite(void) { @@ -113,5 +125,9 @@ tcase_add_test(tc, test_util_str_to_time); suite_add_tcase(s, tc); + tc = tcase_create("Markup"); + tcase_add_test(tc, test_markup_html_to_xhtml); + suite_add_tcase(s, tc); + return s; }