def test4(self): A = [1, 2, 3, 4, 5, 6, 7, 8] rtn = bst_code.bst_recursive(A, 0) self.assertEqual(rtn, -1)
def test3(self): A = [1, 2, 3, 4, 5, 6, 7, 8] rtn = bst_code.bst_recursive(A, 1) self.assertEqual(rtn, 0) rtn = bst_code.bst_recursive(A, 8) self.assertEqual(rtn, 7)