Set up region BBT time when frame position changes, if the region is glued to BBT...
[ardour.git] / libs / ardour / test / framepos_plus_beats_test.cc
index 19aa7f29c6af2ae8b2624be67814047d729882e5..882b6b57212b4fbc2f2c4dfecd2c3adf0a2da89b 100644 (file)
@@ -27,6 +27,10 @@ FrameposPlusBeatsTest::singleTempoTest ()
        /* Add 1 beat to beat 3 of the first bar */
        framepos_t r = map.framepos_plus_beats (frames_per_beat * 2, 1);
        CPPUNIT_ASSERT_EQUAL (r, framepos_t (frames_per_beat * 3));
+
+       /* Add 4 beats to a -ve frame of 1 beat before zero */
+       r = map.framepos_plus_beats (-frames_per_beat * 1, 4);
+       CPPUNIT_ASSERT_EQUAL (r, framepos_t (frames_per_beat * 3));
 }
 
 /* Test adding things that overlap a tempo change */