commit 506c1009b68df9aa7acf4a9530cf8e2eb2235770
parent 783ca72df9efbaedbe9802d874d3b68bf22e1ab2
Author: michiboo <chanmickyyun@gmail.com>
Date: Tue, 11 Jun 2019 17:19:03 +0300
add test for second watch point
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/Tests/AdNoteTest.h b/src/Tests/AdNoteTest.h
@@ -132,9 +132,14 @@ class AdNoteTest:public CxxTest::TestSuite
note->releasekey();
-
+ TS_ASSERT(!tr->hasNext());
+ w->add_watch("out");
note->noteout(outL, outR);
sampleCount += synth->buffersize;
+ w->tick();
+ TS_ASSERT(tr->hasNext());
+ TS_ASSERT_EQUALS(string("out"), tr->read());
+ TS_ASSERT(!tr->hasNext());
TS_ASSERT_DELTA(outL[255], -0.4688f, 0.0001f);
note->noteout(outL, outR);