mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
Add some more tests
This commit is contained in:
parent
74fbd3296d
commit
f90eb144d4
@ -96,6 +96,20 @@ test_executable (void)
|
|||||||
g_free (type);
|
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
|
int
|
||||||
main (int argc, char *argv[])
|
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/subtype", test_subtype);
|
||||||
g_test_add_func ("/contenttype/list", test_list);
|
g_test_add_func ("/contenttype/list", test_list);
|
||||||
g_test_add_func ("/contenttype/executable", test_executable);
|
g_test_add_func ("/contenttype/executable", test_executable);
|
||||||
|
g_test_add_func ("/contenttype/description", test_description);
|
||||||
|
|
||||||
return g_test_run ();
|
return g_test_run ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user