Skip to content
Snippets Groups Projects
Commit 53894055 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

Test RealTuples as well

[[Imported from SVN: r5515]]
parent 01dc7031
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
#include <dune/grid/common/quadraturerules.hh>
#include <dune/src/rotation.hh>
#include <dune/src/realtuple.hh>
#include <dune/src/localgeodesicfefunction.hh>
// Domain dimension
......@@ -57,7 +58,18 @@ void testPermutationInvariance(const std::vector<TargetSpace>& corners)
}
int main()
void testRealTuples()
{
typedef RealTuple<1> TargetSpace;
std::vector<TargetSpace> corners = {TargetSpace(1),
TargetSpace(2),
TargetSpace(3)};
testPermutationInvariance(corners);
}
void testRotations()
{
typedef Rotation<3,double> TargetSpace;
......@@ -75,5 +87,11 @@ int main()
corners[2] = Rotation<3,double>(zAxis,0.1);
testPermutationInvariance(corners);
}
int main()
{
testRealTuples();
testRotations();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment