From 6fee79310710d00117e2e7fc0f0d9738dd356dc6 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 27 Jul 2012 11:27:56 -0600 Subject: [PATCH] interfaces/python/test_fft.py: add an explanation about signed 0 --- interfaces/python/test_fft.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interfaces/python/test_fft.py b/interfaces/python/test_fft.py index 7ee33650..21f5e2f2 100755 --- a/interfaces/python/test_fft.py +++ b/interfaces/python/test_fft.py @@ -89,8 +89,9 @@ class aubio_fft_test_case(TestCase): fftgrain = f ( timegrain ) #self.plot_this ( fftgrain.phas ) assert_equal ( fftgrain.phas[0], 0) - assert_equal ( abs(fftgrain.phas[1]), 0) - assert_almost_equal (fftgrain.norm[0], impulse, decimal = 6 ) + # could be 0 or -0 depending on fft implementation (0 for fftw3, -0 for ooura) + assert_almost_equal ( fftgrain.phas[1], 0) + assert_almost_equal ( fftgrain.norm[0], impulse, decimal = 6 ) def test_rdo_before_do(self): """ check running fft.rdo before fft.do works """ -- 2.26.2