Exemple #1
0
 // chordToStringEqualsTest(): m1 and m2 equals
 @Test
 public void chordToStringEqualsTest() {
   Chord a = new Chord(new Note(5, new Pitch('A')), new Note(5, new Pitch('A')));
   assertEquals("chord(A5.0 |||| A5.0)", a.toString());
 }
Exemple #2
0
 // chordToStringDifferentTest(): m1 and m2 non-equals
 @Test
 public void chordToStringDifferentTest() {
   Chord a = new Chord(new Note(2, new Pitch('C')), new Note(5, new Pitch('A')));
   assertEquals("chord(C2.0 |||| A5.0)", a.toString());
 }
Exemple #3
0
 // chordConstructorTest()
 @Test
 public void chordConstructorTest() {
   Chord a = new Chord(new Note(2., new Pitch('C')), new Note(1., new Pitch('F')));
   assertEquals("chord(C2.0 |||| F1.0)", a.toString());
 }