Nsound  0.9.4
UnitTest.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 //
3 // $Id: UnitTest.h 874 2014-09-08 02:21:29Z weegreenblobbie $
4 //
5 // Copyright (c) 2008 Nick Hilton
6 //
7 // weegreenblobbie_yahoo_com (replace '_' with '@' and '.')
8 //
9 //-----------------------------------------------------------------------------
10 
11 //-----------------------------------------------------------------------------
12 //
13 // This program is free software; you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation; either version 2 of the License, or
16 // (at your option) any later version.
17 //
18 // This program is distributed in the hope that it will be useful,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU Library General Public License for more details.
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program; if not, write to the Free Software
25 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 //
27 //-----------------------------------------------------------------------------
28 
29 #ifndef _NSOUND_UNIT_TEST_H_
30 #define _NSOUND_UNIT_TEST_H_
31 
32 // Some macros for messages.
33 
34 #define TEST_HEADER \
35  endl << THIS_FILE << ":"; cout.width(4); cout << __LINE__ \
36  << ": "; cout.width(0); cout
37 
38 #define TEST_ERROR_HEADER \
39  " FAILURE!" << endl << THIS_FILE << ":"; cerr.width(4); cerr << __LINE__ \
40  << ": ***Error! "; cerr.width(0); cerr
41 
42 #define SUCCESS \
43  " SUCCESS!"
44 
45 // The unit tests.
46 
47 void Buffer_UnitTest();
49 void DelayLine_UnitTest();
63 void Generator_UnitTest();
64 void Sine_UnitTest();
65 void Triangle_UnitTest();
66 void Wavefile_UnitTest();
67 
68 #endif
void FilterDelay_UnitTest()
void BufferResample_UnitTest()
void Triangle_UnitTest()
void FFTransform_UnitTest()
void Generator_UnitTest()
void Buffer_UnitTest()
void FilterBandPassFIR_UnitTest()
void FilterBandRejectFIR_UnitTest()
void DelayLine_UnitTest()
void Wavefile_UnitTest()
void FilterCombLowPassFeedback_UnitTest()
void FilterHighPassFIR_UnitTest()
void FilterHighPassIIR_UnitTest()
void FilterBandPassIIR_UnitTest()
void FilterBandRejectIIR_UnitTest()
void Sine_UnitTest()
void FilterLowPassFIR_UnitTest()
void FilterParametricEqualizer_UnitTest()
void FilterLowPassIIR_UnitTest()
void FilterLeastSquaresFIR_UnitTest()