summaryrefslogtreecommitdiff
path: root/tests/test_residual.h
blob: 60f4eb9a3f23fce503e9d55b3f7937f390e7c29f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef TEST_RESIDUAL_H
#define TEST_RESIDUAL_H

#include <cppunit/extensions/HelperMacros.h>

#include "../src/simpl/base.h"
#include "../src/simpl/peak_detection.h"
#include "../src/simpl/partial_tracking.h"
#include "../src/simpl/synthesis.h"
#include "../src/simpl/residual.h"
#include "test_common.h"

namespace simpl
{

// ---------------------------------------------------------------------------
//	TestSMSResidual
// ---------------------------------------------------------------------------
class TestSMSResidual : public CPPUNIT_NS::TestCase {
    CPPUNIT_TEST_SUITE(TestSMSResidual);
    CPPUNIT_TEST(test_basic);
    CPPUNIT_TEST_SUITE_END();

public:
    void setUp();

protected:
    SMSResidual _res;
    SndfileHandle _sf;
    Frames _frames;

    void test_basic();
};

} // end of namespace simpl

#endif