diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-14 17:03:18 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-11-14 17:03:18 +0000 |
commit | 7ec3ec9dd9967cf5a1889f78b8c77c1ed5b56c8a (patch) | |
tree | 5f6ee4798ec2a206f6555b601e4594e53fc77f07 /tests | |
parent | 14c0991fb96413193ddb197cbcc8e84b82763b11 (diff) | |
download | gst-plugins-bad-7ec3ec9dd9967cf5a1889f78b8c77c1ed5b56c8a.tar.gz gst-plugins-bad-7ec3ec9dd9967cf5a1889f78b8c77c1ed5b56c8a.tar.bz2 gst-plugins-bad-7ec3ec9dd9967cf5a1889f78b8c77c1ed5b56c8a.zip |
tests/check/elements/spectrum.c: Fix spectrum unit test for the latest spectrum changes.
Original commit message from CVS:
* tests/check/elements/spectrum.c: (GST_START_TEST):
Fix spectrum unit test for the latest spectrum changes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/spectrum.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/check/elements/spectrum.c b/tests/check/elements/spectrum.c index 7dee5fe1..245b37bc 100644 --- a/tests/check/elements/spectrum.c +++ b/tests/check/elements/spectrum.c @@ -202,9 +202,9 @@ GST_START_TEST (test_int16) GST_DEBUG ("band[%3d] is %.2f", i, level); /* Only the bands in the middle should have a level above 60 */ fail_if ((i == SPECT_BANDS / 2 || i == SPECT_BANDS / 2 - 1) - && level < 60.0); + && level < -20.0); fail_if ((i != SPECT_BANDS / 2 && i != SPECT_BANDS / 2 - 1) - && level > 60.0); + && level > -20.0); } fail_unless_equals_int (g_list_length (buffers), 1); fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL); @@ -304,9 +304,9 @@ GST_START_TEST (test_int32) GST_DEBUG ("band[%3d] is %.2f", i, level); /* Only the bands in the middle should have a level above 60 */ fail_if ((i == SPECT_BANDS / 2 || i == SPECT_BANDS / 2 - 1) - && level < 60.0); + && level < -20.0); fail_if ((i != SPECT_BANDS / 2 && i != SPECT_BANDS / 2 - 1) - && level > 60.0); + && level > -20.0); } fail_unless_equals_int (g_list_length (buffers), 1); fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL); @@ -406,9 +406,9 @@ GST_START_TEST (test_float32) GST_DEBUG ("band[%3d] is %.2f", i, level); /* Only the bands in the middle should have a level above 60 */ fail_if ((i == SPECT_BANDS / 2 || i == SPECT_BANDS / 2 - 1) - && level < 60.0); + && level < -20.0); fail_if ((i != SPECT_BANDS / 2 && i != SPECT_BANDS / 2 - 1) - && level > 60.0); + && level > -20.0); } fail_unless_equals_int (g_list_length (buffers), 1); fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL); @@ -508,9 +508,9 @@ GST_START_TEST (test_float64) GST_DEBUG ("band[%3d] is %.2f", i, level); /* Only the bands in the middle should have a level above 60 */ fail_if ((i == SPECT_BANDS / 2 || i == SPECT_BANDS / 2 - 1) - && level < 60.0); + && level < -20.0); fail_if ((i != SPECT_BANDS / 2 && i != SPECT_BANDS / 2 - 1) - && level > 60.0); + && level > -20.0); } fail_unless_equals_int (g_list_length (buffers), 1); fail_if ((outbuffer = (GstBuffer *) buffers->data) == NULL); |