Skip to content

Commit

Permalink
add array comparison with np.testing.assert_array_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed May 13, 2023
1 parent 498df55 commit b66b51c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_binning.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ def test_simplify_binning_arguments(
axes_,
ranges_,
)
# for (bin_, bin__) in zip(bins__, bin_centers):
# np.testing.assert_array_equal(bin_, bin__)
assert bins__ == bins_expected
assert axes__ == axes_expected
assert ranges__ == ranges_expected

for i, bin_ in enumerate(bins__):
np.testing.assert_array_equal(bin_, bins_expected[i])
np.testing.assert_array_equal(axes__[i], axes_expected[i])
if ranges__:
np.testing.assert_array_equal(ranges__[i], ranges_expected[i])

0 comments on commit b66b51c

Please sign in to comment.