summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorLars Grueter <lagru@users.noreply.github.com>2019-02-14 20:19:08 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2019-02-14 20:19:08 +0100
commitd5ccaeee0f435a7d6878f8ade59a75e0f5eb45fe (patch)
treed538f7c9d850e9f2f35728881ba87bf5e7d9f78c /numpy/core/numeric.py
parentdea85807c258ded3f75528cce2a444468de93bc1 (diff)
downloadnumpy-d5ccaeee0f435a7d6878f8ade59a75e0f5eb45fe.tar.gz
TST: Improve and refactor tests for numpy.pad
* TST: Move test for negative stat_length and extend coverage to all modes and more variations of a negative stat_length. * TST: Merge tests for pad_width in single class * TST: Test behavior of pad's kwargs for all modes * TST: Move test to TestReflect Can be grouped with already existing test class checking the behavior for the reflect mode. * TST: Simplify regression test for object input * TST: Move testing pad_width as ndarray Can be grouped in class TestPadWidth as this test checks if an ndarray is accepted as the value to pad_width * TST: Remove faulty tests for pad_width's type These test were ineffective. The TypeError raised in these test was not actually due to pad_width receiving the wrong type but due to the missing parameter mode. Added missing type complex to the appropriate existing test checking for pad_widths type behavior. * TST: Move test for pad_width of zero * TST: Move test for simple stat_length * TST: Simplify classes with only one test * TST: Add naive test for non-contiguous arrays * MAINT: Don't import pad directly Using np.pad instead of directly importing the function seems to be more inline with other test modules. * STY: Make class layout consistent in module * TST: Fix match-string for missing pad mode error The CLI fails due to error message containing a reference to _pad_dispatcher() being returned instead of pad(). For some reason this test passes when run locally.
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions