summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/tests/test_umath_accuracy.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_umath_accuracy.py b/numpy/core/tests/test_umath_accuracy.py
index f3281e418..fd7214396 100644
--- a/numpy/core/tests/test_umath_accuracy.py
+++ b/numpy/core/tests/test_umath_accuracy.py
@@ -52,3 +52,9 @@ class TestAccuracy:
outval = outval[perm]
maxulperr = data_subset['ulperr'].max()
assert_array_max_ulp(npfunc(inval), outval, maxulperr)
+
+ def test_ignore_nan_ulperror(self):
+ # Ignore ULP differences between various NAN's
+ nan1_f32 = np.array(str_to_float('0xffffffff'), dtype=np.float32)
+ nan2_f32 = np.array(str_to_float('0x7fddbfbf'), dtype=np.float32)
+ assert_array_max_ulp(nan1_f32, nan2_f32, 0)