Mercurial > pidgin
diff libpurple/tests/test_yahoo_util.c @ 28639:f4a95b3424d1
Make yahoo_codes_to_html not crash when given an empty string, or a string
containing just unknown markup, and add a couple of tests to the testsuite
for these. Hopefully fixes https://bugzilla.redhat.com/show_bug.cgi?id=541341
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 25 Nov 2009 16:39:29 +0000 |
parents | 43200ff042ad |
children |
line wrap: on
line diff
--- a/libpurple/tests/test_yahoo_util.c Wed Nov 25 16:10:28 2009 +0000 +++ b/libpurple/tests/test_yahoo_util.c Wed Nov 25 16:39:29 2009 +0000 @@ -15,6 +15,10 @@ START_TEST(test_codes_to_html) { + assert_string_equal_free("", + yahoo_codes_to_html("")); + assert_string_equal_free("", + yahoo_codes_to_html("\x1B[12345m")); assert_string_equal_free("plain", yahoo_codes_to_html("plain")); assert_string_equal_free("unknown ansi code",