diff options
author | Ryan Nelson <rnelsonchem@gmail.com> | 2014-12-05 11:39:39 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-01-11 10:36:21 -0700 |
commit | 103fee0ddc23bf29367b052fd39a411c926daae5 (patch) | |
tree | e03be1d68fa70d0fa2efca1eb17907455894c52c /numpy/polynomial/polyutils.py | |
parent | ae2fbd3754d3fb60531705a4f212b9bdfbbdaefd (diff) | |
download | numpy-103fee0ddc23bf29367b052fd39a411c926daae5.tar.gz |
TST: Update assert_array_almost_equal_nulp tests
This fix addresses Issue #347.
All of the tests in this class were using random numbers generated
without a seed. This broke `test_simple` in a nondeterministic manner.
Rewrote all tests for this function. Instead of using random numbers,
well-defined arrays of widely varying amplitude were created instead.
Changed the array modification values so that the test arrays were
either just above or just below the NULP threshold.
Added tests for float64, float32, complex128, and complex64 dtypes, and
added both addition and subtraction tests. Tried to standardize the code
for all tests.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions