Skip to content

Commit 8bed5bc

Browse files
committed
add tests for negative use cases to improve covergae
1 parent 1e50360 commit 8bed5bc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_arraycreation.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,19 @@ def test_diag_diagflat_raise_error(func):
133133
getattr(dpnp, func)(ia, k=2.0)
134134

135135

136+
<<<<<<< HEAD
136137
@pytest.mark.parametrize("func", ["diag", "diagflat"])
138+
=======
139+
def test_diag_diagflat_raise_error():
140+
ia = dpnp.array([0, 1, 2, 3, 4])
141+
with pytest.raises(TypeError):
142+
dpnp.diag(ia, k=2.0)
143+
144+
with pytest.raises(TypeError):
145+
dpnp.diagflat(ia, k=2.0)
146+
147+
148+
>>>>>>> add tests for negative use cases to improve covergae
137149
@pytest.mark.parametrize(
138150
"seq",
139151
[

0 commit comments

Comments
 (0)