def test_function11(self): """ Function best_item returns 0 with input V = [4,7], W = [2,3] and space = 2 """ with patch("builtins.input", return_value="1") as input_call: import attempt self.assertEqual(attempt.best_item([4,7],[2,3],2), 0)
def test_function9(self): """ Function best_item returns 2 with input V = [10,5,15], W = [4,2,6] and space = 7 """ with patch("builtins.input", return_value="1") as input_call: import attempt self.assertEqual(attempt.best_item([10,5,15],[4,2,6],7), 2)
def test_function10(self): """ Function best_item returns -1 with input V = [], W = [] and space = 18 """ with patch("builtins.input", return_value="1") as input_call: import attempt self.assertEqual(attempt.best_item([],[],18), -1)
def test_function8(self): """ Function best_item returns 1 with input V = [3,5,2], W = [6,2,1] and space = 2 """ with patch("builtins.input", return_value="1") as input_call: import attempt self.assertEqual(attempt.best_item([3,5,2],[6,2,1],2), 1)