libMesh
vector_value_test.C
Go to the documentation of this file.
1 // Ignore unused parameter warnings coming from cppunit headers
2 #include <libmesh/ignore_warnings.h>
3 #include <cppunit/extensions/HelperMacros.h>
4 #include <cppunit/TestCase.h>
5 #include <libmesh/restore_warnings.h>
6 
7 #include <libmesh/vector_value.h>
8 
9 #include "type_vector_test.h"
10 
11 // THE CPPUNIT_TEST_SUITE_END macro expands to code that involves
12 // std::auto_ptr, which in turn produces -Wdeprecated-declarations
13 // warnings. These can be ignored in GCC as long as we wrap the
14 // offending code in appropriate pragmas. We can't get away with a
15 // single ignore_warnings.h inclusion at the beginning of this file,
16 // since the libmesh headers pull in a restore_warnings.h at some
17 // point. We also don't bother restoring warnings at the end of this
18 // file since it's not a header.
19 #include <libmesh/ignore_warnings.h>
20 
21 using namespace libMesh;
22 
23 #define VECTORVALUETEST \
24  TYPEVECTORTEST \
25  CPPUNIT_TEST( testScalarInit ); \
26 
27 class RealVectorValueTest : public TypeVectorTestBase<VectorValue<Real>> {
28 public:
29  CPPUNIT_TEST_SUITE( RealVectorValueTest );
30 
31  VECTORVALUETEST
32 
33  CPPUNIT_TEST_SUITE_END();
34 };
35 
36 class NumberVectorValueTest : public TypeVectorTestBase<VectorValue<Number>> {
37 public:
38  CPPUNIT_TEST_SUITE( NumberVectorValueTest );
39 
40  VECTORVALUETEST
41 
42  CPPUNIT_TEST_SUITE_END();
43 };
44 
45 class ComplexVectorValueTest : public TypeVectorTestBase<VectorValue<Complex>> {
46 public:
47  CPPUNIT_TEST_SUITE( NumberVectorValueTest );
48 
49  VECTORVALUETEST
50 
51  CPPUNIT_TEST_SUITE_END();
52 };
53 
The libMesh namespace provides an interface to certain functionality in the library.
CPPUNIT_TEST_SUITE_REGISTRATION(RealVectorValueTest)