From f90eb144d404c76180ba7facf32b4c9751aed4b5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 4 Jul 2010 23:42:07 -0400 Subject: [PATCH] Add some more tests --- gio/tests/contenttype.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c index 5c015a26b..1ae6b18c2 100644 --- a/gio/tests/contenttype.c +++ b/gio/tests/contenttype.c @@ -96,6 +96,20 @@ test_executable (void) g_free (type); } +static void +test_description (void) +{ + gchar *type; + gchar *desc; + + type = g_content_type_from_mime_type ("text/plain"); + desc = g_content_type_get_description (type); + g_assert (desc != NULL); + + g_free (desc); + g_free (type); +} + int main (int argc, char *argv[]) { @@ -108,6 +122,7 @@ main (int argc, char *argv[]) g_test_add_func ("/contenttype/subtype", test_subtype); g_test_add_func ("/contenttype/list", test_list); g_test_add_func ("/contenttype/executable", test_executable); + g_test_add_func ("/contenttype/description", test_description); return g_test_run (); }