@@ -0,0 +1,548 @@
+import unittest%0A%0Aimport cupyx.scipy.fft as cp_fft%0A%0A%0Aclass TestNextFastLen(unittest.TestCase):%0A%0A    def _is_fast_len(self, n):%0A        if n == 0:%0A            return True%0A        for p in (2, 3, 5, 7):%0A            while n %25 p == 0:%0A                n //= p%0A        return n == 1%0A%0A    def test_next_fast_len(self):%0A        for in_value in range(2000):%0A            out_value = cp_fft.next_fast_len(in_value)%0A            assert self._is_fast_len(out_value)%0A            for i in range(in_value, out_value):%0A                assert not self._is_fast_len(i)%0A

Add test