pidgin: a29c19a3: A unit test check from the EFF
markdoliner at pidgin.im
markdoliner at pidgin.im
Tue Aug 16 02:55:51 EDT 2011
----------------------------------------------------------------------
Revision: a29c19a3137494a750a610594a946eb7515338a3
Parent: ca07365c6eb9a12b008397dd5ad34231e8d6e89e
Author: markdoliner at pidgin.im
Date: 08/16/11 02:49:37
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a29c19a3137494a750a610594a946eb7515338a3
Changelog:
A unit test check from the EFF
Changes against parent ca07365c6eb9a12b008397dd5ad34231e8d6e89e
patched libpurple/tests/test_util.c
-------------- next part --------------
============================================================
--- libpurple/tests/test_util.c a769199f8f0c602a65656982bb2c6e2295297e9f
+++ libpurple/tests/test_util.c f7f74a7d6f1767f38bce1b06a43b3d4a83f3241b
@@ -216,6 +216,13 @@ END_TEST
}
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 @@ util_suite(void)
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;
}
More information about the Commits
mailing list