Commits

mike fc committed 042292e

add test

  • Participants
  • Parent commits 0030a9e
  • Branches fft

Comments (0)

Files changed (1)

File pypy/module/test_lib_pypy/numpypy/fft/test_fft.py

+from pypy.module.micronumpy.test.test_base import BaseNumpyAppTest
+
+
+
+class AppTestFFT(BaseNumpyAppTest):
+    def test_rfft(self):
+        from numpypy import array, absolute, fft
+        a = array([85.0, 76.0, 42.0, 26.0, 51.0, 40.0, 79.0, 30.0], dtype='f8')
+        res = fft.fft(a)
+        assert (absolute(a - a)).sum() < 1e-6