Example #1
0
 // 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());
 }
Example #2
0
 // 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());
 }
Example #3
0
 // 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());
 }
Example #4
0
 // 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());
 }