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