From ad97f5e4246c8326b5344b5e0c2573bf8dace428 Mon Sep 17 00:00:00 2001 From: Jack Betteridge Date: Fri, 20 Dec 2024 16:42:44 +0000 Subject: [PATCH] tests: Make maths functions precision tests more stringent --- tests/test_symbolics.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_symbolics.py b/tests/test_symbolics.py index 6c18dfb869..7beb0c0b97 100644 --- a/tests/test_symbolics.py +++ b/tests/test_symbolics.py @@ -566,8 +566,8 @@ def test_minmax(): @pytest.mark.parametrize('dtype,expected', [ - (np.float32, ("fmaxf", "fminf")), - (np.float64, ("fmax", "fmin")), + (np.float32, ("fmaxf(", "fminf(")), + (np.float64, ("fmax(", "fmin(")), ]) def test_minmax_precision(dtype, expected): grid = Grid(shape=(5, 5), dtype=dtype) @@ -591,8 +591,8 @@ def test_minmax_precision(dtype, expected): @pytest.mark.parametrize('dtype,expected', [ - (np.float32, "powf"), - (np.float64, "pow"), + (np.float32, "powf("), + (np.float64, "pow("), ]) def test_pow_precision(dtype, expected): grid = Grid(shape=(5, 5), dtype=dtype) @@ -613,8 +613,8 @@ def test_pow_precision(dtype, expected): @pytest.mark.parametrize('dtype,expected', [ - (np.float32, "absf"), - (np.float64, "abs"), + (np.float32, "fabsf("), + (np.float64, "fabs("), ]) def test_abs_precision(dtype, expected): grid = Grid(shape=(5, 5), dtype=dtype)