From: Paul Brossier Date: Wed, 11 Jul 2012 20:41:22 +0000 (-0600) Subject: test_fft.py: phase can be 0 or -0 X-Git-Tag: 0.4.0-beta1~407 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=299c2b0f10da5fa11ee46bfe1219aeff3b25cd42;p=aubio.git test_fft.py: phase can be 0 or -0 --- diff --git a/interfaces/python/test_fft.py b/interfaces/python/test_fft.py index eb20c41f..60738d2f 100644 --- a/interfaces/python/test_fft.py +++ b/interfaces/python/test_fft.py @@ -87,7 +87,7 @@ class aubio_fft_test_case(TestCase): fftgrain = f ( timegrain ) #self.plot_this ( fftgrain.phas ) assert_equal ( fftgrain.phas[0], 0) - assert_equal ( fftgrain.phas[1], 0) + assert_equal ( abs(fftgrain.phas[1]), 0) assert_almost_equal (fftgrain.norm[0], impulse, decimal = 6 ) def test_rdo_before_do(self):