def test_can_create_interpolation_searchearch_fifth_case(self):
     search = InterpolationSearch()
     self.assertEqual(search.interpolation_search(fifth_case, 3), 0)
 def test_can_create_interpolation_searchearch_fourth_case(self):
     search = InterpolationSearch()
     self.assertEqual(search.interpolation_search(fourth_case, 606), 5)
 def test_can_create_interpolation_searchearch_third_case(self):
     search = InterpolationSearch()
     self.assertEqual(search.interpolation_search(third_case, 76), 4)
 def test_can_create_interpolation_searchearch_second_case(self):
     search = InterpolationSearch()
     self.assertEqual(search.interpolation_search(second_case, 14), -1)
 def test_can_create_interpolation_searchearch_else_case(self):
     search = InterpolationSearch()
     self.assertEqual(
         search.interpolation_search((10, 12, 13, 16, 18, 19, 20, 21), 18),
         4)
 def test_can_create_interpolation_search(self):
     search = InterpolationSearch()
     self.assertTrue(isinstance(search, InterpolationSearch))