예제 #1
0
 // chordDifferentDurationTest(): m1, m2 different duration
 @Test
 public void chordDifferentDurationTest() {
   Chord a = new Chord(new Note(1, new Pitch('C')), new Note(5, new Pitch('A')));
   assertTrue(a.duration() == a.top().duration());
   Chord b = new Chord(a, new Note(3, new Pitch('D')));
   assertTrue(b.top().duration() == b.duration());
 }