Skip to content

Commit 8bc83b5

Browse files
authored
Merge pull request numpy#14326 from maxwell-aladago/assert_array_equal
TST: Add assert_array_equal test for big integer arrays.
2 parents 2204694 + a1bfe6e commit 8bc83b5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

numpy/testing/tests/test_utils.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,21 @@ def foo(t):
9090
for t in ['S1', 'U1']:
9191
foo(t)
9292

93+
def test_0_ndim_array(self):
94+
x = np.array(473963742225900817127911193656584771)
95+
y = np.array(18535119325151578301457182298393896)
96+
assert_raises(AssertionError, self._assert_func, x, y)
97+
98+
y = x
99+
self._assert_func(x, y)
100+
101+
x = np.array(43)
102+
y = np.array(10)
103+
assert_raises(AssertionError, self._assert_func, x, y)
104+
105+
y = x
106+
self._assert_func(x, y)
107+
93108
def test_generic_rank3(self):
94109
"""Test rank 3 array for all dtypes."""
95110
def foo(t):

0 commit comments

Comments
 (0)