Skip to content

Commit 3432716

Browse files
committed
added tests for broadcast_arrays function
1 parent 16a2284 commit 3432716

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_arraymanipulation.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,3 +917,14 @@ def test_incompatible_shapes_raise_valueerror(shapes):
917917
for input_shapes in shapes:
918918
assert_broadcast_arrays_raise(input_shapes)
919919
assert_broadcast_arrays_raise(input_shapes[::-1])
920+
921+
922+
def test_broadcast_arrays_empty_input():
923+
assert dpnp.broadcast_arrays() == []
924+
925+
926+
def test_subok_error():
927+
x = dpnp.ones((4))
928+
with pytest.raises(NotImplementedError):
929+
dpnp.broadcast_arrays(x, subok=True)
930+
dpnp.broadcast_to(x, (4, 4), subok=True)

0 commit comments

Comments
 (0)