def test_intervals(self): seq = NoteSeq("C D E F#") self.assertEqual(seq.intervals(), [2, 2, 2])
def test_intervals(self): seq1 = NoteSeq("C D E F#") seq2 = NoteSeq("B' C''") self.assertEqual(seq1.intervals(), [2, 2, 2]) self.assertEqual(seq2.intervals(), [1])