Skip to content

Commit

Permalink
add test for broadcasts not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
rushabh-v committed Mar 15, 2020
1 parent 0d36ae5 commit 1eae082
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/cupy_tests/logic_tests/test_comparison.py
Expand Up @@ -109,6 +109,12 @@ def test_array_equal_diff_dtypes_is_equal(self, xp):
b = xp.array([0, 1, 100, 10])
return xp.array_equal(a, b)

@testing.numpy_cupy_equal()
def test_array_equal_broadcast_not_allowed(self, xp):
a = xp.array([1, 1, 1, 1])
b = xp.array([1])
return xp.array_equal(a, b)


class TestAllclose(unittest.TestCase):

Expand Down

0 comments on commit 1eae082

Please sign in to comment.