diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-12-25 13:35:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-25 13:35:14 -0700 |
commit | 8bc83b5fdcbd17ed2bc6de6e0903c19ca94f8797 (patch) | |
tree | 9fb9add7ad5b476d1ec99cd789c839bc362f7944 | |
parent | 22046945fdab20aa4e135cc9029179984a545927 (diff) | |
parent | a1bfe6e3c9cfd81a0ca235cd806ab7098dd93a5c (diff) | |
download | numpy-8bc83b5fdcbd17ed2bc6de6e0903c19ca94f8797.tar.gz |
Merge pull request #14326 from maxwell-aladago/assert_array_equal
TST: Add assert_array_equal test for big integer arrays.
-rw-r--r-- | numpy/testing/tests/test_utils.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py index d14d4090c..ad72b9199 100644 --- a/numpy/testing/tests/test_utils.py +++ b/numpy/testing/tests/test_utils.py @@ -90,6 +90,21 @@ class TestArrayEqual(_GenericTest): for t in ['S1', 'U1']: foo(t) + def test_0_ndim_array(self): + x = np.array(473963742225900817127911193656584771) + y = np.array(18535119325151578301457182298393896) + assert_raises(AssertionError, self._assert_func, x, y) + + y = x + self._assert_func(x, y) + + x = np.array(43) + y = np.array(10) + assert_raises(AssertionError, self._assert_func, x, y) + + y = x + self._assert_func(x, y) + def test_generic_rank3(self): """Test rank 3 array for all dtypes.""" def foo(t): |