From 299c2b0f10da5fa11ee46bfe1219aeff3b25cd42 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 11 Jul 2012 14:41:22 -0600 Subject: [PATCH] test_fft.py: phase can be 0 or -0 --- interfaces/python/test_fft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2