summaryrefslogtreecommitdiff
path: root/libs/ardour/test
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-10-13 14:26:54 +1100
committernick_m <mainsbridge@gmail.com>2016-10-13 14:26:54 +1100
commitc09e4675957a450479e58af1e51e90a860b6bb34 (patch)
tree0014d00876da99f705a82104c9040f4729dca2fd /libs/ardour/test
parentd824e696c0322ebc8e14320f9ef1d713ea9d9404 (diff)
Improve check in tempoAtPulseTest
Diffstat (limited to 'libs/ardour/test')
-rw-r--r--libs/ardour/test/tempo_test.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/ardour/test/tempo_test.cc b/libs/ardour/test/tempo_test.cc
index ae75896855..f80fab4f24 100644
--- a/libs/ardour/test/tempo_test.cc
+++ b/libs/ardour/test/tempo_test.cc
@@ -126,8 +126,6 @@ TempoTest::tempoAtPulseTest ()
map.add_tempo (tempoB, 20.0, 0, TempoSection::Ramp, MusicTime);
map.add_tempo (tempoC, 30.0, 0, TempoSection::Ramp, MusicTime);
- map.recompute_map (map._metrics);
-
TempoSection* tA = 0;
TempoSection* tB = 0;
TempoSection* tC = 0;
@@ -166,6 +164,6 @@ TempoTest::tempoAtPulseTest ()
/* self-check tempo at pulse @ 125 bpm. */
CPPUNIT_ASSERT_DOUBLES_EQUAL (125.0, tA->tempo_at_pulse (tA->pulse_at_tempo (125.0, 0, sampling_rate)), 0.00000000000000001);
- CPPUNIT_ASSERT_DOUBLES_EQUAL (160.0, tA->tempo_at_pulse (tB->pulse()), 0.00000000000000001);
- CPPUNIT_ASSERT_DOUBLES_EQUAL (123.0, tB->tempo_at_pulse (tC->pulse()), 0.00000000000000001);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL (160.0, tA->tempo_at_pulse (20.0), 0.00000000000000001);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL (123.0, tB->tempo_at_pulse (30.0), 0.00000000000000001);
}