// mergeEmptyTest(): m1 and/or m2 empty @Test public void mergeEmptyTest() { Merge a = new Merge(new Rest(0), new Rest(0)); assertEquals(".0.0 .0.0", a.toString()); }
// mergeToStringDifferentTest(): m1 and m2 non-equals @Test public void mergeToStringDifferentTest() { Merge a = new Merge(new Note(2, new Pitch('C')), new Note(5, new Pitch('A'))); assertEquals("C2.0 A5.0", a.toString()); }
// mergeConstructorTest() @Test public void mergeConstructorTest() { Merge a = new Merge(new Note(2., new Pitch('C')), new Note(1., new Pitch('F'))); assertEquals("C2.0 F1.0", a.toString()); }
// mergeToStringEqualsTest(): m1 and m2 equals @Test public void mergeToStringEqualsTest() { Merge a = new Merge(new Note(5, new Pitch('A')), new Note(5, new Pitch('A'))); assertEquals("A5.0 A5.0", a.toString()); }