22#include <cxxtest/TestSuite.h>
46 testCtl->initportamento(40.0f, 400.0f,
false);
48 while(
testCtl->portamento.used) {
49 TS_ASSERT((0.0f <=
testCtl->portamento.x)
50 && (
testCtl->portamento.x <= 1.0f));
51 TS_ASSERT((0.1f <=
testCtl->portamento.freqrap)
52 && (
testCtl->portamento.freqrap <= 1.0f));
55 TS_ASSERT((0.0f <=
testCtl->portamento.x)
56 && (
testCtl->portamento.x <= 1.0f));
57 TS_ASSERT((0.1f <=
testCtl->portamento.freqrap)
58 && (
testCtl->portamento.freqrap <= 1.0f));
64 testCtl->initportamento(40.0f, 400.0f,
false);
66 for(
i = 0;
i < 10; ++
i)
69 TS_ASSERT_DELTA(
testCtl->portamento.x, 0.0290249f, 0.000001f)
70 TS_ASSERT_DELTA(
testCtl->portamento.freqrap, 0.126122f, 0.000001f)
SYNTH_T * synth
Definition ControllerTest.h:26
SYNTH_T * synth
Definition LocalZynAddSubFx.cpp:47
Definition Controller.h:9
Definition ControllerTest.h:29
Controller * testCtl
Definition ControllerTest.h:74
void setUp()
Definition ControllerTest.h:31
void testPortamentoRange()
Definition ControllerTest.h:42
void tearDown()
Definition ControllerTest.h:36
void testPortamentoValue()
Definition ControllerTest.h:61
register unsigned i
Definition inflate.c:1575