示例#1
0
def test_array():
    v1 = [1, 2, 3]
    v2 = [2, 3, 4]

    for i in range(0, len(v1)):
        v1x = v1[i]
        v2x = v2[i]
        assert code_holder(v1x, v2x) == v1x + v2x
def test_second():
    assert code_holder(0, 0) == 0
def test_answer():
    assert code_holder(1, 3) == 3
def test_negatives():
    assert code_holder(-12, -19) == -12 + -19
def test_third():
    assert code_holder(15, 39) == 15 + 39