From 0ea2789671ce66f8a4d695721b0373b5954b2142 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Fri, 7 Aug 2020 20:36:04 +0200 Subject: [PATCH] Update the tests --- tests/SynthT.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/SynthT.cpp b/tests/SynthT.cpp index 3a07437af..17f2ee50c 100644 --- a/tests/SynthT.cpp +++ b/tests/SynthT.cpp @@ -709,9 +709,9 @@ TEST_CASE("[Synth] Release (Multiple notes)") synth.noteOff(0, 64, 0); synth.noteOff(0, 63, 2); synth.noteOff(0, 62, 85); - REQUIRE( synth.getNumActiveVoices() == 0 ); + REQUIRE( synth.getNumActiveVoices(true) == 0 ); synth.cc(0, 64, 0); - REQUIRE( synth.getNumActiveVoices() == 3 ); + REQUIRE( synth.getNumActiveVoices(true) == 3 ); } TEST_CASE("[Synth] Release (Multiple notes, release_key ignores the pedal)") @@ -727,7 +727,7 @@ TEST_CASE("[Synth] Release (Multiple notes, release_key ignores the pedal)") synth.noteOff(0, 64, 0); synth.noteOff(0, 63, 2); synth.noteOff(0, 62, 85); - REQUIRE( synth.getNumActiveVoices() == 3 ); + REQUIRE( synth.getNumActiveVoices(true) == 3 ); } TEST_CASE("[Synth] Release (Multiple notes, cleared the delayed voices after)") @@ -744,8 +744,8 @@ TEST_CASE("[Synth] Release (Multiple notes, cleared the delayed voices after)") synth.noteOff(0, 64, 0); synth.noteOff(0, 63, 2); synth.noteOff(0, 62, 85); - REQUIRE( synth.getNumActiveVoices() == 0 ); + REQUIRE( synth.getNumActiveVoices(true) == 0 ); synth.cc(0, 64, 0); - REQUIRE( synth.getNumActiveVoices() == 3 ); + REQUIRE( synth.getNumActiveVoices(true) == 3 ); REQUIRE( synth.getRegionView(0)->delayedReleases.empty() ); }