test_fft.py: phase can be 0 or -0
authorPaul Brossier <piem@piem.org>
Wed, 11 Jul 2012 20:41:22 +0000 (14:41 -0600)
committerPaul Brossier <piem@piem.org>
Wed, 11 Jul 2012 20:41:22 +0000 (14:41 -0600)
interfaces/python/test_fft.py

index eb20c41f7edf26a12d0e1226c1a5821ab640e3db..60738d2f07ed86771357ad64154665cb4cc9f4ac 100644 (file)
@@ -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):