extremaTest.hh

Go to the documentation of this file.
1 
9 #ifndef extremaTest_hh
10 #define extremaTest_hh
11 
12 #include "hp2D/extrema.hh"
13 #include <optimization.h>
14 #include <ap.h>
15 #include "hp2D.hh"
16 #include "basics/testcase.hh"
17 
18 
19 namespace test{
20 
21  using concepts::Real;
22  using concepts::Real2d;
23 
24  //*************************************************** ExtremaTest **************************
25 
26  class ExtremaTest : public TestCase{
27  public:
28  //virtual ~minMaxTest() {}
29  virtual void run();
30 
31  // testCase for a constant function, max = min = random value between 0 and 1
32  void testCase1_();
33 
34  // testCase for piecewise constant function on a mesh of four cells
35  void testCase2_();
36 
37  // testCase for function f = (4*x^2-4*x)*(1-y), max = 0.0 , min = -1.0
38  void testCase3_();
39 
40  //TestCase for function f = cos(pi*x)*cos(pi*y), max = 1.0 , min = -1.0
41  void testCase4_();
42 
43  };
44 
45 }//namespace test
46 
47 
48 
49 #endif //minMaxTest_hh
Base class for tests.
Definition: testcase.hh:92
Point< Real, 2 > Real2d
Unit tests.
Definition: testcase.hh:66
virtual void run()
Runs the tests. Must be overwritten by the specialization.
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich