LMMS
Loading...
Searching...
No Matches
plugins
ZynAddSubFx
zynaddsubfx
src
Tests
RandTest.h
Go to the documentation of this file.
1
/*
2
ZynAddSubFX - a software synthesizer
3
4
RandTest.h - CxxTest for Pseudo-Random Number Generator
5
Copyright (C) 2009-2009 Mark McCurry
6
Author: Mark McCurry
7
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of version 2 of the GNU General Public License
10
as published by the Free Software Foundation.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License (version 2 or later) for more details.
16
17
You should have received a copy of the GNU General Public License (version 2)
18
along with this program; if not, write to the Free Software Foundation,
19
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21
*/
22
23
#include "
../Misc/Util.h
"
24
SYNTH_T
*
synth
;
25
26
#include <cstdlib>
27
#include <cstdio>
28
#include <cxxtest/TestSuite.h>
29
30
class
RandTest
:
public
CxxTest::TestSuite
31
{
32
public
:
33
void
testPRNG
(
void
) {
34
//verify RND returns expected pattern when unseeded
35
TS_ASSERT_DELTA(
RND
, 0.607781, 0.00001);
36
TS_ASSERT_DELTA(
RND
, 0.591761, 0.00001);
37
TS_ASSERT_DELTA(
RND
, 0.186133, 0.00001);
38
TS_ASSERT_DELTA(
RND
, 0.286319, 0.00001);
39
TS_ASSERT_DELTA(
RND
, 0.511766, 0.00001);
40
}
41
};
RND
#define RND
Definition
Util.h:134
synth
SYNTH_T * synth
Definition
LocalZynAddSubFx.cpp:47
Util.h
RandTest
Definition
RandTest.h:31
RandTest::testPRNG
void testPRNG(void)
Definition
RandTest.h:33
SYNTH_T
Definition
globals.h:204
Generated on
for LMMS by
1.16.1