Skip to content

Commit

Permalink
add assert to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Weidenholzer committed Aug 18, 2023
1 parent 23bdfd1 commit 447f3c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ def test_array_contains(data, value, expected):

def test_array_contains_axis():
data = np.array([[4, 5, 6], [5, 7, 9]])
result = array_contains(data, 5, axis=1)

result_0 = array_contains(data, 5, axis=0)
np.testing.assert_array_equal(result_0, np.array([True, True, False]))

result_1 = array_contains(data, 5, axis=1)
np.testing.assert_array_equal(result_1, np.array([True, True]))


def test_array_contains_object_dtype():
Expand Down

0 comments on commit 447f3c8

Please sign in to comment.