Skip to content

Commit 5f3d90b

Browse files
Add test_ihfft_error to TestHfft
1 parent 60607bd commit 5f3d90b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dpnp/tests/test_fft.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,12 @@ def test_ihfft_bool(self, n, norm):
670670
expected = numpy.fft.ihfft(a_np, n=n, norm=norm)
671671
assert_dtype_allclose(result, expected, check_only_type_kind=True)
672672

673+
def test_ihfft_error(self):
674+
a = dpnp.ones(11)
675+
# incorrect norm
676+
with pytest.raises(ValueError):
677+
_ = dpnp.fft.ihfft(a, norm="backwards")
678+
673679

674680
class TestIrfft:
675681
def setup_method(self):

0 commit comments

Comments
 (0)