root/experimental/components/SymbolSyncPoly/autotest_sources/SymbolSyncPoly_testsuite.h @ 3371

Revision 3371, 1.1 KB (checked in by jgaeddert, 6 years ago)

fixing config, autotest inheritance, adding methods

Line 
1#ifndef __SYMBOLSYNCPOLYDSPTEST_H
2#define __SYMBOLSYNCPOLYDSPTEST_H
3
4#include <cxxtest/TestSuite.h>
5#include "../SymbolSyncPolyDSP.h"
6
7
8//
9// A simple test suite: Just inherit CxxTest::TestSuite and write tests!
10//
11
12// NOTE: " : public CxxTest::TestSuite" must be on the same line as the class
13//       definition, otherwise the python script does not recognize it
14//       as a test class
15class SymbolSyncPoly_testsuite1 : public CxxTest::TestSuite,
16    public SymbolSyncPolyDSP
17{
18public:
19
20    void test1() {
21        // initialize variables
22        mf_i  = -10;
23        dmf_i =  10;
24        mf_q  =  10;
25        dmf_q =  10;
26        GenerateErrorSignal();
27        TS_ASSERT_DELTA( q, 0.0f, 1e-6f );
28    }
29
30    void test2() {
31        // initialize variables
32        mf_i  =  30;
33        dmf_i =  5;
34        mf_q  =  20;
35        dmf_q =  1;
36        GenerateErrorSignal();
37        TS_ASSERT_DELTA( q, -85.0f, 1e-6f );
38    }
39
40};
41
42
43class SymbolSyncPoly_testsuite2: public CxxTest::TestSuite
44{
45public:
46
47    void testBasicSynchronization() {
48        SymbolSyncPolyDSP symbolSync;
49        TS_WARN("Test not implemented");
50    }
51
52
53};
54
55#endif
56
Note: See TracBrowser for help on using the browser.