We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ae945 commit d691846Copy full SHA for d691846
dpctl/tests/elementwise/test_add.py
@@ -144,6 +144,14 @@ def test_add_broadcasting():
144
).all()
145
146
147
+def test_add_broadcasting_error():
148
+ get_queue_or_skip()
149
+ m = dpt.ones((10, 10), dtype="i4")
150
+ v = dpt.ones((3,), dtype="i4")
151
+ with pytest.raises(ValueError):
152
+ dpt.add(m, v)
153
+
154
155
@pytest.mark.parametrize("arr_dt", _all_dtypes)
156
def test_add_python_scalar(arr_dt):
157
q = get_queue_or_skip()
0 commit comments