diff options
author | Lars G <lagru@mailbox.org> | 2018-09-15 22:16:59 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-09-15 22:16:59 -0700 |
commit | 87131155b86b221e63cf8d9ead61490a59e3db53 (patch) | |
tree | 2a2f0bfe629f61fb445b2f63a4ec7676f75e9629 /numpy/lib/tests/test_arraypad.py | |
parent | 58da56876328e51473ebd4c5ce819262621d5278 (diff) | |
download | numpy-87131155b86b221e63cf8d9ead61490a59e3db53.tar.gz |
TST: Add a test for pad-wrapping by length 0
Diffstat (limited to 'numpy/lib/tests/test_arraypad.py')
-rw-r--r-- | numpy/lib/tests/test_arraypad.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_arraypad.py b/numpy/lib/tests/test_arraypad.py index 45d624781..55c917156 100644 --- a/numpy/lib/tests/test_arraypad.py +++ b/numpy/lib/tests/test_arraypad.py @@ -887,6 +887,11 @@ class TestWrap(object): b = np.array([3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1]) assert_array_equal(a, b) + def test_pad_with_zero(self): + a = np.ones((3, 5)) + b = np.pad(a, (0, 5), mode="wrap") + assert_array_equal(a, b[:-5, :-5]) + class TestStatLen(object): def test_check_simple(self): |