diff options
author | stijn <stijn@ignitron.net> | 2020-09-08 15:22:34 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-09-11 10:04:57 +1000 |
commit | 2e54d9d146b34d7ad00e4394c9767f4319244cdf (patch) | |
tree | b6d56e3d53b9fef5d5898964d7bdd086e23016d5 /tests/float/math_domain.py | |
parent | 8d5a40c86e384bf3cddb2f687374e0bb1ae6df7d (diff) |
py: Fix handling of NaN in certain pow implementations.
Adds a new compile-time option MICROPY_PY_MATH_POW_FIX_NAN for use with
toolchains that don't handle pow-of-NaN correctly.
Diffstat (limited to 'tests/float/math_domain.py')
-rw-r--r-- | tests/float/math_domain.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/float/math_domain.py b/tests/float/math_domain.py index e63628cf5..0c25dc08b 100644 --- a/tests/float/math_domain.py +++ b/tests/float/math_domain.py @@ -38,7 +38,7 @@ for name, f, args in ( # double argument functions for name, f, args in ( - ("pow", math.pow, ((0, 2), (-1, 2), (0, -1), (-1, 2.3))), + ("pow", math.pow, ((0, 2), (-1, 2), (0, -1), (-1, 2.3), (nan, 0), (1, nan))), ("fmod", math.fmod, ((1.2, inf), (1.2, -inf), (1.2, 0), (inf, 1.2))), ("atan2", math.atan2, ((0, 0), (-inf, inf), (-inf, -inf), (inf, -inf))), ("copysign", math.copysign, ()), |