Skip to content

Commit

Permalink
tests: Make maths functions precision tests more stringent
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Dec 20, 2024
1 parent 8e3090e commit ad97f5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_symbolics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit ad97f5e

Please sign in to comment.