Example #1
0
 def test_is_parallel_repeating(self):
     """
     Check the function doesn't mis-identify repeating notes (no motion).
     """
     last = (2, 4)
     current = (2, 4)
     result = is_parallel(last, current)
     self.assertEqual(False, result)
Example #2
0
 def test_is_parallel_contrary(self):
     """
     Check the function doesn't mis-identify contrary motion.
     """
     last = (2, 4)
     current = (1, 5)
     result = is_parallel(last, current)
     self.assertEqual(False, result)
Example #3
0
 def test_is_parallel_falling(self):
     """
     Detects falling parallel motion.
     """
     last = (2, 4)
     current = (1, 3)
     result = is_parallel(last, current)
     self.assertEqual(True, result)
Example #4
0
 def test_is_parallel_repeating(self):
     """
     Check the function doesn't mis-identify repeating notes (no motion).
     """
     last = (2, 4)
     current = (2, 4)
     result = is_parallel(last, current)
     self.assertEqual(False, result)
Example #5
0
 def test_is_parallel_contrary(self):
     """
     Check the function doesn't mis-identify contrary motion.
     """
     last = (2, 4)
     current = (1, 5)
     result = is_parallel(last, current)
     self.assertEqual(False, result)
Example #6
0
 def test_is_parallel_falling(self):
     """
     Detects falling parallel motion.
     """
     last = (2, 4)
     current = (1, 3)
     result = is_parallel(last, current)
     self.assertEqual(True, result)