Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Test if user-specified integration degree is too low
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianL1908 authored and wence- committed Jul 14, 2020
1 parent b71eaa0 commit 21b447d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/test_fiat.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,15 @@ def test_facet_nodality_tabulate(element):
assert np.isclose(basis[i], 1.0 if i == j else 0.0)


@pytest.mark.parametrize('element', [
'Nedelec(S, 3, variant="integral(2)")',
'NedelecSecondKind(S, 3, variant="integral(3)")'
])
def test_error_quadrature_degree(element):
with pytest.raises(ValueError):
eval(element)


if __name__ == '__main__':
import os
pytest.main(os.path.abspath(__file__))

0 comments on commit 21b447d

Please sign in to comment.