use of com.xenoage.zong.core.music.slur.Slur in project Zong by Xenoage.
the class SlursTest method assertSlurBetween.
public static void assertSlurBetween(Chord[] chords, int chord1Index, int chord2Index, SlurType expectedSlurType) {
Slur slur = getStartSlur(chords, chord1Index);
assertEquals(expectedSlurType, slur.getType());
List<SlurWaypoint> waypoints = slur.getWaypoints();
assertEquals(2, waypoints.size());
assertEquals(chords[chord1Index], waypoints.get(0).getChord());
assertEquals(chords[chord2Index], waypoints.get(1).getChord());
}
Aggregations