diff options
author | Maxwell Aladago <maxwell.aladago@gmail.com> | 2019-08-22 10:43:21 -0400 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-12-25 20:49:45 +0200 |
commit | a1bfe6e3c9cfd81a0ca235cd806ab7098dd93a5c (patch) | |
tree | 9fb9add7ad5b476d1ec99cd789c839bc362f7944 /numpy/testing | |
parent | 22046945fdab20aa4e135cc9029179984a545927 (diff) | |
download | numpy-a1bfe6e3c9cfd81a0ca235cd806ab7098dd93a5c.tar.gz |
TST: Add assert_array_equal test for big integer arrays
Diffstat (limited to 'numpy/testing')
-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): |