def test1(self): A = [1, 2, 3, 4, 5, 6] target = 3 res = two_subtract(A, target) res2 = two_subtract2(A, target) print A print res print res2
def test2(self): A = [1, 2, 3, 4, 5, 6] random.shuffle(A) target = 3 res = two_subtract(A, target) res2 = two_subtract2(A, target) print A print res print res2