From 47d6aa104efde09dc9e98caaeb060a09497cfd82 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 23 Dec 2021 15:10:22 +0100 Subject: [PATCH] test: corr tests extended --- tests/correlators_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/correlators_test.py b/tests/correlators_test.py index 16719337..f4f5794a 100644 --- a/tests/correlators_test.py +++ b/tests/correlators_test.py @@ -31,6 +31,16 @@ def test_function_overloading(): assert np.isclose(con[0].dvalue, t2.dvalue) assert np.allclose(con[0].deltas['t'], t2.deltas['t']) + np.arcsin(corr_a) + np.arccos(corr_a) + np.arctan(corr_a) + np.arcsinh(corr_a) + np.arccosh(corr_a + 1.1) + np.arctanh(corr_a) + + with pytest.raises(Exception): + np.arccosh(corr_a) + def test_modify_correlator(): corr_content = [] @@ -47,7 +57,10 @@ def test_modify_correlator(): corr.roll(np.random.randint(100)) corr.deriv(symmetric=True) corr.deriv(symmetric=False) + corr.deriv().deriv() corr.second_deriv() + corr.second_deriv().second_deriv() + def test_m_eff():