ref: b60d414e092b6f6d316929c287baff48d0bee935
parent: fc197b0d36bb1b7be874e9c32f72b7b3b68c428e
author: Paul Brossier <[email protected]>
date: Fri Jul 27 07:29:49 EDT 2012
test_fft.py: merge from wheezy
--- a/interfaces/python/test_fft.py
+++ b/interfaces/python/test_fft.py
@@ -89,8 +89,9 @@
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 """