From: Paul Brossier Date: Thu, 8 Oct 2009 01:11:30 +0000 (+0200) Subject: tests/python/src/spectral/fft.py: remove abs, test passes in double precision X-Git-Tag: bzr2git~168 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e6b2a0c83c5a053ead70179e75c0c41aa678b4e7;p=aubio.git tests/python/src/spectral/fft.py: remove abs, test passes in double precision --- diff --git a/tests/python/src/spectral/fft.py b/tests/python/src/spectral/fft.py index 8b596bcc..ddcd55a0 100644 --- a/tests/python/src/spectral/fft.py +++ b/tests/python/src/spectral/fft.py @@ -92,7 +92,7 @@ class fft_unit(aubio_unit_template): self.assertCloseEnough((buf_size-1)*some_constant, cvec_read_norm(fftgrain, 0, 0)) for index in range(1,buf_size/2+1): - self.assertCloseEnough(some_constant, abs(cvec_read_norm(fftgrain, 0, index))) + self.assertCloseEnough(some_constant, cvec_read_norm(fftgrain, 0, index)) self.assertCloseEnough(0., cvec_read_norm(fftgrain, 0, buf_size/2+1)) del fftgrain