Skip to content

Commit

Permalink
test up to dimension dependent max degrees
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Oct 15, 2023
1 parent 49bee1e commit 97ace6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/unit/test_gauss_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
import numpy as np


@pytest.mark.parametrize("degree", range(1, 5))
@pytest.mark.parametrize("dim", range(1, 4))
@pytest.mark.parametrize("dim, degree", sum(([pytest.param(d, k) for k in range(0, 8-d)] for d in range(1, 4)), []))
def test_gl_basis_values(dim, degree):
"""Ensure that integrating a simple monomial produces the expected results."""
from FIAT import ufc_simplex, GaussLegendre, make_quadrature
Expand Down
3 changes: 1 addition & 2 deletions test/unit/test_gauss_lobatto_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
import numpy as np


@pytest.mark.parametrize("degree", range(1, 5))
@pytest.mark.parametrize("dim", range(1, 4))
@pytest.mark.parametrize("dim, degree", sum(([pytest.param(d, k) for k in range(1, 8-d)] for d in range(1, 4)), []))
def test_gll_basis_values(dim, degree):
"""Ensure that integrating a simple monomial produces the expected results."""
from FIAT import ufc_simplex, GaussLobattoLegendre, make_quadrature
Expand Down

0 comments on commit 97ace6f

Please sign in to comment.