diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-03-04 19:27:47 -0800 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-05-14 13:52:36 -0700 |
commit | 6492f632a92439c82c74efa6753e10ce9360c6ba (patch) | |
tree | a6fdbc0753e2315a392def7142d7539d59c50eb6 /numpy/lib/tests/test_function_base.py | |
parent | dfe7b9db2350505903ba19867bf27dabda2bff71 (diff) | |
download | numpy-6492f632a92439c82c74efa6753e10ce9360c6ba.tar.gz |
MAINT: address reviewer comments
* Unit test for object clip issue
* parametrized test_simple_int32_inout() to
additionally handle scenario where "unsafe"
casting is explicitly passed through, as
requested by reviewer
* add a requested comment related to possibility
of future nan check optimization for `@name@_clip`
* add a unit test to cover the case where np.clip()
is called with None for both max and min
* add a unit test for the case where out is None
and casting is specified as an invalid value, to flush
through code path in TestClip.fastclip
* add unit test + doc update for expected behavior
when amin > amax
* add unit test + patch for bug in npy_ObjectClip; its
operations and operands were wrong; the unit test case
is based on a scenario probed by the hypothesis library
* add unit test for error in timedelta64 MAX
function for clip handling
* add unit test for a pathological case where np.ones(10)
is clipped with amin=1, amax=0
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions