diff options
author | David Schleef <ds@schleef.org> | 2004-05-08 01:41:12 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-05-08 01:41:12 +0000 |
commit | 28942dc4edfc4950e948f9b0112bcc62612b1c72 (patch) | |
tree | 5dce2072d9f7fc724a6ceec0c694dcb377e44404 /testsuite/caps | |
parent | ac77bfe982683fae395670311a3ead24c8314e79 (diff) |
testsuite/caps/caps.c: A check for appending
Original commit message from CVS:
* testsuite/caps/caps.c: (test3), (main): A check for appending
ANY caps.
Diffstat (limited to 'testsuite/caps')
-rw-r--r-- | testsuite/caps/caps.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/caps/caps.c b/testsuite/caps/caps.c index cfc4a1b72..c8169760d 100644 --- a/testsuite/caps/caps.c +++ b/testsuite/caps/caps.c @@ -128,6 +128,24 @@ test2 (void) } +void +test3 (void) +{ + GstCaps *caps1; + GstCaps *caps2; + + caps1 = gst_caps_new_any (); + caps2 = gst_caps_new_simple ("audio/raw", NULL); + + gst_caps_append (caps1, caps2); + g_print ("%s\n", gst_caps_to_string (caps1)); + + g_assert (gst_caps_is_any (caps1)); + g_assert (gst_caps_get_size (caps1) == 0); + + gst_caps_free (caps1); +} + int main (int argc, char *argv[]) { @@ -135,6 +153,7 @@ main (int argc, char *argv[]) test1 (); test2 (); + test3 (); return 0; } |