Ejemplo n.º 1
0
 def test_g5_lte_d4(self):
     note = ('G', 5)
     other = ('D', 4)
     self.assertTrue(notemappings.compare_notes(note, other), -1)
Ejemplo n.º 2
0
 def test_g5_gte_e2(self):
     note = ('G', 5)
     other = ('E', 2)
     self.assertTrue(notemappings.compare_notes(note, other), 1)
Ejemplo n.º 3
0
 def test_equal_to_other(self):
     note = ('E', 4)
     other = ('E', 4)
     self.assertEqual(notemappings.compare_notes(note, other), 0)
Ejemplo n.º 4
0
 def test_higher_than_other(self):
     note = ('D', 4)
     other = ('G', 2)
     self.assertEqual(notemappings.compare_notes(note, other), 1)
Ejemplo n.º 5
0
 def test_lower_than_other(self):
     note = ('C', 3)
     other = ('C', 4)
     self.assertEqual(notemappings.compare_notes(note, other), -1)