From 142eb92a7669debb3748d85e56daa0e83d39464d Mon Sep 17 00:00:00 2001
From: John Glover <j@johnglover.net>
Date: Sat, 22 Jun 2013 18:39:17 +0200
Subject: [residual] Add basic test for SMSResidual

---
 tests/test_residual.h | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 tests/test_residual.h

(limited to 'tests/test_residual.h')

diff --git a/tests/test_residual.h b/tests/test_residual.h
new file mode 100644
index 0000000..60f4eb9
--- /dev/null
+++ b/tests/test_residual.h
@@ -0,0 +1,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
-- 
cgit v1.2.3