summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a357433)
raw | patch | inline | side by side (parent: a357433)
author | Stefan Sauer <ensonic@users.sf.net> | |
Wed, 9 Nov 2011 10:24:26 +0000 (11:24 +0100) | ||
committer | Stefan Sauer <ensonic@users.sf.net> | |
Wed, 9 Nov 2011 10:24:26 +0000 (11:24 +0100) |
tests/check/gst/gststructure.c | patch | blob | history |
index b37bd2443091c29ca2fbc7fbbf9bb276d0cd7d06..58beee8dbf10ef54b06dbbcc2e29dd1930bbf5fd 100644 (file)
GST_END_TEST;
+GST_START_TEST (test_is_subset)
+{
+ GstStructure *s1, *s2;
+
+ s1 = gst_structure_from_string ("test/test, channels=(int){ 1, 2 }", NULL);
+ fail_if (s1 == NULL);
+ s2 = gst_structure_from_string ("test/test, channels=(int)[ 1, 2 ]", NULL);
+ fail_if (s2 == NULL);
+
+ fail_unless (gst_structure_is_subset (s1, s2));
+
+ gst_structure_free (s1);
+ gst_structure_free (s2);
+}
+
+GST_END_TEST;
+
+
GST_START_TEST (test_structure_nested)
{
GstStructure *sp, *sc1, *sc2;
tcase_add_test (tc_chain, test_structure_new);
tcase_add_test (tc_chain, test_fixate);
tcase_add_test (tc_chain, test_fixate_frac_list);
+ tcase_add_test (tc_chain, test_is_subset);
tcase_add_test (tc_chain, test_structure_nested);
tcase_add_test (tc_chain, test_structure_nested_from_and_to_string);
tcase_add_test (tc_chain, test_vararg_getters);