Пример #1
0
 def test_upwward_inflection_at_third_position_should_return_3(self):
     self.assertEqual(morph.findInflection([3, 2, 1, 4]), 3)
Пример #2
0
 def test_upwward_inflection_at_second_position_should_return_2(self):
     self.assertEqual(morph.findInflection([1, 0, 1]), 2)
Пример #3
0
 def test_downward_inflection_at_third_position_should_return_3(self):
     self.assertEqual(morph.findInflection([1, 2, 3, 0]), 3)
Пример #4
0
 def test_two_element_vector_should_return_none(self):
     self.assertIsNone(morph.findInflection([4, 3]))
Пример #5
0
 def test_decreasing_vector_should_return_none(self):
     self.assertIsNone(morph.findInflection([3, 2, 1]))
Пример #6
0
 def test_upwward_inflection_at_third_position_should_return_3(self):
     self.assertEqual(morph.findInflection([3, 2, 1, 4]), 3)
Пример #7
0
 def test_empty_vector_should_return_none(self):
     self.assertIsNone(morph.findInflection([]))
Пример #8
0
 def test_downward_inflection_at_third_position_should_return_3(self):
     self.assertEqual(morph.findInflection([1, 2, 3, 0]), 3)
Пример #9
0
 def test_upwward_inflection_at_second_position_should_return_2(self):
     self.assertEqual(morph.findInflection([1, 0, 1]), 2)
Пример #10
0
 def test_decreasing_vector_should_return_none(self):
     self.assertIsNone(morph.findInflection([3, 2, 1]))
Пример #11
0
 def test_two_element_vector_should_return_none(self):
     self.assertIsNone(morph.findInflection([4, 3]))
Пример #12
0
 def test_empty_vector_should_return_none(self):
     self.assertIsNone(morph.findInflection([]))