summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/math_domain_special.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-04 17:03:37 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-04 17:03:37 +1000
commit5630f277bd0027f83366c9e87d252bdb04de5c1d (patch)
tree789fbd2ee86a924b04a3135bf602ee4f80c63e79 /tests/float/math_domain_special.py
parenta111ca25eaba71995aea588dc0662744864c65d1 (diff)
downloadmicropython-5630f277bd0027f83366c9e87d252bdb04de5c1d.tar.gz
micropython-5630f277bd0027f83366c9e87d252bdb04de5c1d.zip
tests/float: Test -inf and some larger values for special math funcs.
Diffstat (limited to 'tests/float/math_domain_special.py')
-rw-r--r--tests/float/math_domain_special.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/float/math_domain_special.py b/tests/float/math_domain_special.py
index 388920350e..5650c35fec 100644
--- a/tests/float/math_domain_special.py
+++ b/tests/float/math_domain_special.py
@@ -26,7 +26,7 @@ for name, f, args in (
('gamma', math.gamma, (-2, -1, 0, 1)),
('lgamma', math.lgamma, (-2, -1, 0, 1)),
):
- for x in args + (inf, nan):
+ for x in args + (inf, -inf, nan):
try:
ans = f(x)
print('%.4f' % ans)