def test_upwward_inflection_at_third_position_should_return_3(self): self.assertEqual(morph.findInflection([3, 2, 1, 4]), 3)
def test_upwward_inflection_at_second_position_should_return_2(self): self.assertEqual(morph.findInflection([1, 0, 1]), 2)
def test_downward_inflection_at_third_position_should_return_3(self): self.assertEqual(morph.findInflection([1, 2, 3, 0]), 3)
def test_two_element_vector_should_return_none(self): self.assertIsNone(morph.findInflection([4, 3]))
def test_decreasing_vector_should_return_none(self): self.assertIsNone(morph.findInflection([3, 2, 1]))
def test_empty_vector_should_return_none(self): self.assertIsNone(morph.findInflection([]))