Engauge Digitizer  2
TestFitting.h
1 #ifndef TEST_FITTING_H
2 #define TEST_FITTING_H
3 
4 #include <QObject>
5 
7 class TestFitting : public QObject
8 {
9  Q_OBJECT
10 public:
12  explicit TestFitting(QObject *parent = 0);
13 
14 private slots:
15  void cleanupTestCase ();
16  void initTestCase ();
17 
18  // Test exact fit cases, for which the order equals the number of points minus 1
19  void testExactFit01 ();
20  void testExactFit12 ();
21  void testExactFit23 ();
22  void testExactFit34 ();
23 
24  // Test overfitted cases, for which the order is equal to, or greater than, the number of points
25  void testOverfit11 ();
26  void testOverfit22 ();
27  void testOverfit33 ();
28  void testOverfit44 ();
29 
30  // Test underfitted cases, for which the order is less than the number of points minus 1
31  void testUnderfit02 ();
32  void testUnderfit13 ();
33  void testUnderfit24 ();
34  void testUnderfit35 ();
35 
36  private:
37  bool generalTest (int order,
38  int numPoints) const;
39 };
40 
41 #endif // TEST_FITTING_H
Unit test of Fitting classes.
Definition: TestFitting.h:7
TestFitting(QObject *parent=0)
Single constructor.
Definition: TestFitting.cpp:13