def test_enough_notes_backwards(self): preceding = [{0: 0, 1: 0, 2: 0}, {0: 0}, {0: 0}, {0: 0}] self.assertEqual(_chords_for_notes(3, preceding, False), 3)
def test_insufficient_notes_single_pad(self): self.assertEqual(_chords_for_notes(4, []), 1)
def test_insufficient_notes_multi_pad(self): self.assertEqual(_chords_for_notes(15, []), 3)
def test_enough_notes(self): following = [{0: 8, 1: 10}, {0: 8, 1: 10, 2: 10}] self.assertEqual(_chords_for_notes(4, following), 2)