예제 #1
0
파일: test_utils.py 프로젝트: GitBruno/foox
 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)
예제 #2
0
파일: test_utils.py 프로젝트: GitBruno/foox
 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)
예제 #3
0
파일: test_utils.py 프로젝트: GitBruno/foox
 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)
예제 #4
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 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)
예제 #5
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 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)
예제 #6
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 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)