示例#1
0
 // mergeDifferentDurationTest(): m1, m2 different duration
 @Test
 public void mergeDifferentDurationTest() {
   Merge a = new Merge(new Rest(1), new Note(5, new Pitch('A')));
   assertTrue(6 == a.duration());
 }
示例#2
0
 // mergeSameDurationTest(): m1, m2 same duration
 @Test
 public void mergeSameDurationTest() {
   Merge a = new Merge(new Rest(5), new Note(5, new Pitch('A')));
   assertTrue(10 == a.duration());
 }