tests/python/src/spectral/fft.py: remove abs, test passes in double precision
authorPaul Brossier <piem@piem.org>
Thu, 8 Oct 2009 01:11:30 +0000 (03:11 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 8 Oct 2009 01:11:30 +0000 (03:11 +0200)
tests/python/src/spectral/fft.py

index 8b596bcc0d2f39736ac81a686c761257823ef120..ddcd55a012ca99e97856284926cc3cd12e390016 100644 (file)
@@ -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