[Numpy-svn] [numpy/numpy] 617707: TST: Added unit tests for assert_array_less
GitHub
noreply at github.com
Thu Jan 5 14:09:58 EST 2017
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 617707ec85f2ee59e618bce78d9751414c93d6cb
https://github.com/numpy/numpy/commit/617707ec85f2ee59e618bce78d9751414c93d6cb
Author: Jonathan Tammo Siebert <siebertjonathan at aim.com>
Date: 2017-01-04 (Wed, 04 Jan 2017)
Changed paths:
M numpy/testing/tests/test_utils.py
Log Message:
-----------
TST: Added unit tests for assert_array_less
Added tests for simple arrays/elements,
tests that ensure that nans are not compared when they are in the same
position in both arrays but raise AssertionError when they are not,
and tests that ensure inf logic
(-np.inf < np.inf, 1.0 < np.inf, -np.inf < 1.0)
and that all other cases fail.
Commit: a2f9fe71ce3e2d4a0c8622617a852551feadf01a
https://github.com/numpy/numpy/commit/a2f9fe71ce3e2d4a0c8622617a852551feadf01a
Author: Jonathan Tammo Siebert <siebertjonathan at aim.com>
Date: 2017-01-04 (Wed, 04 Jan 2017)
Changed paths:
M numpy/testing/tests/test_utils.py
Log Message:
-----------
TST: Added test that np.inf is not approx. -np.inf
This failed to raise AssertionError in an earlier rewrite of
assert_array_compare and is thus tested explicitly now.
Commit: 777e8c6f2d37e51b375e9be012055356061828d5
https://github.com/numpy/numpy/commit/777e8c6f2d37e51b375e9be012055356061828d5
Author: Jonathan Tammo Siebert <siebertjonathan at aim.com>
Date: 2017-01-04 (Wed, 04 Jan 2017)
Changed paths:
M numpy/testing/utils.py
Log Message:
-----------
BUG: corrected behavior for assert_array_less
See issue #2418
assert_array_less does now treat inf/nan
correctly, namely:
-inf < x < inf for any real number x
nans still are not compared, when they occur
at the same position
To achieve this without breaking any other
functions relying on assert_array_compare,
an additional parameter (equal_inf) was
introduced that defaults to the old behavior
(analogous to equal_nan).
Commit: 6312db5be6bc3bb35c999f10cb7db1cacacb4cbf
https://github.com/numpy/numpy/commit/6312db5be6bc3bb35c999f10cb7db1cacacb4cbf
Author: Jonathan Tammo Siebert <siebertjonathan at aim.com>
Date: 2017-01-04 (Wed, 04 Jan 2017)
Changed paths:
M doc/release/1.13.0-notes.rst
Log Message:
-----------
DOC: Added changed behavior of assert_array_less
The bug that +/- inf where not treated correctly in
np.testing.assert_array_less changed the behavior and is thus mentioned
in the release notes.
Commit: b9fb9862627e40fc5c4aef9a841c407c79dc6c3f
https://github.com/numpy/numpy/commit/b9fb9862627e40fc5c4aef9a841c407c79dc6c3f
Author: seberg <sebastian at sipsolutions.net>
Date: 2017-01-05 (Thu, 05 Jan 2017)
Changed paths:
M doc/release/1.13.0-notes.rst
M numpy/testing/tests/test_utils.py
M numpy/testing/utils.py
Log Message:
-----------
Merge pull request #8410 from jotasi/arrayAssertLessFix
BUG: Fixed behavior of assert_array_less for +/-inf
Compare: https://github.com/numpy/numpy/compare/4f84a45086fb...b9fb9862627e
More information about the Numpy-svn
mailing list