From a1bfe6e3c9cfd81a0ca235cd806ab7098dd93a5c Mon Sep 17 00:00:00 2001 From: Maxwell Aladago Date: Thu, 22 Aug 2019 10:43:21 -0400 Subject: TST: Add assert_array_equal test for big integer arrays --- numpy/testing/tests/test_utils.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'numpy/testing') 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): -- cgit v1.2.1