[glib] Add some more tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add some more tests
- Date: Mon, 5 Jul 2010 04:57:51 +0000 (UTC)
commit f90eb144d404c76180ba7facf32b4c9751aed4b5
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 4 23:42:07 2010 -0400
Add some more tests
gio/tests/contenttype.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/contenttype.c b/gio/tests/contenttype.c
index 5c015a2..1ae6b18 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 ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]