예제 #1
0
파일: test_utils.py 프로젝트: GitBruno/foox
 def test_non_stepwise_motion_from(self):
     """
     Non-stepwise motion from preceeding note.
     """
     melody = [8, 6, 5]
     position = 1
     self.assertFalse(is_stepwise_motion(melody, position))
예제 #2
0
파일: test_utils.py 프로젝트: GitBruno/foox
 def test_descending(self):
     """
     Descending stepwise movement.
     """
     melody = [7, 6, 5]
     position = 1
     self.assertTrue(is_stepwise_motion(melody, position))
예제 #3
0
파일: test_utils.py 프로젝트: GitBruno/foox
 def test_non_uniform_motion_up_down(self):
     """
     Stepwise motion but ascending then descending.
     """
     melody = [5, 6, 5]
     position = 1
     self.assertFalse(is_stepwise_motion(melody, position))
예제 #4
0
파일: test_utils.py 프로젝트: GitBruno/foox
 def test_non_stepwise_motion_to(self):
     """
     Non-stepwise motion to the following note.
     """
     melody = [5, 6, 8]
     position = 1
     self.assertFalse(is_stepwise_motion(melody, position))
예제 #5
0
파일: test_utils.py 프로젝트: GitBruno/foox
 def test_ascending(self):
     """
     Ascending stepwise movement.
     """
     melody = [5, 6, 7]
     position = 1
     self.assertTrue(is_stepwise_motion(melody, position))
예제 #6
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 def test_non_stepwise_motion_from(self):
     """
     Non-stepwise motion from preceeding note.
     """
     melody = [8, 6, 5]
     position = 1
     self.assertFalse(is_stepwise_motion(melody, position))
예제 #7
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 def test_non_uniform_motion_up_down(self):
     """
     Stepwise motion but ascending then descending.
     """
     melody = [5, 6, 5]
     position = 1
     self.assertFalse(is_stepwise_motion(melody, position))
예제 #8
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 def test_descending(self):
     """
     Descending stepwise movement.
     """
     melody = [7, 6, 5]
     position = 1
     self.assertTrue(is_stepwise_motion(melody, position))
예제 #9
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 def test_ascending(self):
     """
     Ascending stepwise movement.
     """
     melody = [5, 6, 7]
     position = 1
     self.assertTrue(is_stepwise_motion(melody, position))
예제 #10
0
파일: test_utils.py 프로젝트: d3ft0uch/foox
 def test_non_stepwise_motion_to(self):
     """
     Non-stepwise motion to the following note.
     """
     melody = [5, 6, 8]
     position = 1
     self.assertFalse(is_stepwise_motion(melody, position))