diff options
author | Damien George <damien.p.george@gmail.com> | 2018-09-04 17:03:37 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-09-04 17:03:37 +1000 |
commit | 5630f277bd0027f83366c9e87d252bdb04de5c1d (patch) | |
tree | 789fbd2ee86a924b04a3135bf602ee4f80c63e79 | |
parent | a111ca25eaba71995aea588dc0662744864c65d1 (diff) |
tests/float: Test -inf and some larger values for special math funcs.
-rw-r--r-- | tests/float/math_domain_special.py | 2 | ||||
-rw-r--r-- | tests/float/math_fun_special.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/float/math_domain_special.py b/tests/float/math_domain_special.py index 388920350..5650c35fe 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) diff --git a/tests/float/math_fun_special.py b/tests/float/math_fun_special.py index c3665a7cd..e676a6fc9 100644 --- a/tests/float/math_fun_special.py +++ b/tests/float/math_fun_special.py @@ -16,7 +16,7 @@ functions = [ ('log10', log10, test_values), ('cosh', cosh, test_values), ('sinh', sinh, test_values), - ('tanh', tanh, test_values), + ('tanh', tanh, [-1e6, -100] + test_values + [100, 1e6]), ('acosh', acosh, [1.0, 5.0, 1.0]), ('asinh', asinh, test_values), ('atanh', atanh, [-0.99, -0.5, 0.0, 0.5, 0.99]), |