shithub: aubio

Download patch

ref: 299c2b0f10da5fa11ee46bfe1219aeff3b25cd42
parent: 4afa448e6d9f82c28c2ebb2cb098d9f414a322d1
author: Paul Brossier <piem@piem.org>
date: Wed Jul 11 10:41:22 EDT 2012

test_fft.py: phase can be 0 or -0

--- a/interfaces/python/test_fft.py
+++ b/interfaces/python/test_fft.py
@@ -87,7 +87,7 @@
     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):