Search in sources :

Example 1 with ChlapikBeamSlant

use of material.beam.slant.ChlapikBeamSlant in project Zong by Xenoage.

the class SingleStaffBeamSlanterTest method computeTest.

@Test
public void computeTest() {
    // use tests from Ross and Chlapik
    for (Suite<Example> suite : alist(new RossBeamSlant(), new ChlapikBeamSlant())) {
        for (Example example : suite.getExamples()) {
            float expectedSlant = example.getSlantIs();
            Slant slant = testee.compute(example.getStems(), example.staffLines);
            assertSlantContains(expectedSlant, slant, suite.getName() + ": " + example.name);
        }
    }
}
Also used : Example(material.beam.slant.Example) RossBeamSlant(material.beam.slant.RossBeamSlant) ChlapikBeamSlant(material.beam.slant.ChlapikBeamSlant) RossBeamSlant(material.beam.slant.RossBeamSlant) Slant(com.xenoage.zong.musiclayout.spacer.beam.Slant) ChlapikBeamSlant(material.beam.slant.ChlapikBeamSlant) Test(org.junit.Test)

Aggregations

Slant (com.xenoage.zong.musiclayout.spacer.beam.Slant)1 ChlapikBeamSlant (material.beam.slant.ChlapikBeamSlant)1 Example (material.beam.slant.Example)1 RossBeamSlant (material.beam.slant.RossBeamSlant)1 Test (org.junit.Test)1