Skip to content

Commit c1cd0f6

Browse files
Cover case b.ndim==0
1 parent e6e66ad commit c1cd0f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpnp/tests/test_linalg.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,6 +2830,10 @@ def test_solve_errors(self):
28302830
inp.linalg.LinAlgError, inp.linalg.solve, a_dp_ndim_1, b_dp
28312831
)
28322832

2833+
# b.ndim == 0
2834+
b_dp_ndim_0 = inp.array(2)
2835+
assert_raises(ValueError, inp.linalg.solve, a_dp, b_dp_ndim_0)
2836+
28332837

28342838
class TestSlogdet:
28352839
@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True))

0 commit comments

Comments
 (0)