Small fix to Legendre root Python tests

This commit is contained in:
Dag Sverre Seljebotn 2016-03-04 15:14:44 +01:00
parent da3cd27363
commit eb4a76a4eb

View file

@ -44,8 +44,8 @@ def test_legendre_transform():
def check_legendre_roots(n):
xs, ws = ([], []) if n == 0 else p_roots(n) # from SciPy
xl, wl = libsharp.legendre_roots(n)
assert_allclose(xs, xl)
assert_allclose(ws, wl)
assert_allclose(xs, xl, rtol=1e-14, atol=1e-14)
assert_allclose(ws, wl, rtol=1e-14, atol=1e-14)
def test_legendre_roots():
"""