MCPcopy Index your code
hub / github.com/numpy/numpy / test_fft_with_integer_or_bool_input

Function test_fft_with_integer_or_bool_input

numpy/fft/tests/test_pocketfft.py:604–609  ·  view source on GitHub ↗
(data, fft)

Source from the content-addressed store, hash-verified

602 np.arange(5, dtype=np.int16),
603])
604def test_fft_with_integer_or_bool_input(data, fft):
605 # Regression test for gh-25819
606 result = fft(data)
607 float_data = data.astype(np.result_type(data, 1.))
608 expected = fft(float_data)
609 assert_array_equal(result, expected)

Callers

nothing calls this directly

Calls 3

assert_array_equalFunction · 0.90
fftFunction · 0.85
astypeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…