diff options
author | Nathaniel Beaver <nathanielmbeaver@gmail.com> | 2016-02-01 12:52:53 -0600 |
---|---|---|
committer | Nathaniel Beaver <nathanielmbeaver@gmail.com> | 2016-02-01 12:52:53 -0600 |
commit | 7fa6aeaa145d01dd63037d51643218784071805c (patch) | |
tree | 80fc034c5156e60fd3e6aa8ddcefcb3bfcff842e | |
parent | da10a1cd5eff56af9b83585bf93bbccc21fe2a1d (diff) | |
download | numpy-7fa6aeaa145d01dd63037d51643218784071805c.tar.gz |
TST: out of bounds bases in base_repr
-rw-r--r-- | numpy/core/tests/test_numeric.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py index 34be84135..7309cf224 100644 --- a/numpy/core/tests/test_numeric.py +++ b/numpy/core/tests/test_numeric.py @@ -1044,6 +1044,12 @@ class TestBaseRepr(TestCase): assert_equal(np.base_repr(-12, 10, 4), '-000012') assert_equal(np.base_repr(-12, 4), '-30') + def test_base_range(self): + with self.assertRaises(ValueError): + np.base_repr(1, 1) + with self.assertRaises(ValueError): + np.base_repr(1, 37) + class TestArrayComparisons(TestCase): def test_array_equal(self): |