From e6b2a0c83c5a053ead70179e75c0c41aa678b4e7 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 8 Oct 2009 03:11:30 +0200 Subject: [PATCH] tests/python/src/spectral/fft.py: remove abs, test passes in double precision --- tests/python/src/spectral/fft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2