Commit 26d4d1a2 authored by Carsten Gräser's avatar Carsten Gräser

Merge branch 'feature/basistest' into 'master'

[test] Add concept check to test for global basis

See merge request !42
parents e46c5a87 7191ba74
Pipeline #1882 passed with stage
in 53 minutes and 18 seconds
......@@ -7,6 +7,9 @@
#include <algorithm>
#include <dune/common/test/testsuite.hh>
#include <dune/common/concept.hh>
#include <dune/functions/functionspacebases/concepts.hh>
......@@ -133,6 +136,12 @@ Dune::TestSuite checkBasis(const Basis& basis)
{
Dune::TestSuite test("basis check");
using GridView = typename Basis::GridView;
test.check(Dune::models<Dune::Functions::Concept::GlobalBasis<GridView>, Basis>(), "global basis concept check")
<< "type passed to checkBasis() does not model the GlobalBasis concept";
test.subTest(checkBasisIndices(basis));
return test;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment