pidgin/ljfisher-ssl-client-auth

A unit test check from the EFF

2011-08-16, Mark Doliner
daedb1559529
Parents f85d42933682
Children 07e52e08be42
A unit test check from the EFF
--- a/libpurple/tests/test_util.c Tue Aug 16 04:45:39 2011 +0000
+++ b/libpurple/tests/test_util.c Tue Aug 16 06:49:37 2011 +0000
@@ -216,6 +216,13 @@
}
END_TEST
+START_TEST(test_strdup_withhtml)
+{
+ gchar *result = purple_strdup_withhtml("hi\r\nthere\n");
+ assert_string_equal_free("hi<BR>there<BR>", result);
+}
+END_TEST
+
Suite *
util_suite(void)
{
@@ -264,5 +271,9 @@
tcase_add_test(tc, test_mime_decode_field);
suite_add_tcase(s, tc);
+ tc = tcase_create("strdup_withhtml");
+ tcase_add_test(tc, test_strdup_withhtml);
+ suite_add_tcase(s, tc);
+
return s;
}