示例#1
0
def test8_three():
    actual = sum_series2(3, 2, 1)
    expected = 4
    assert actual == expected
示例#2
0
def test8_ten():
    actual = sum_series2(10, 2, 1)
    expected = 123
    assert actual == expected
示例#3
0
def test8_one():
    actual = sum_series2(1, 2, 1)
    expected = 1
    assert actual == expected
示例#4
0
def test8_two():
    actual = sum_series2(2, 2, 1)
    expected = 3
    assert actual == expected
示例#5
0
def test8_zero():
    actual = sum_series2(0, 2, 1)
    expected = 2
    assert actual == expected
示例#6
0
def test7_ten():
    actual = sum_series2(10)
    expected = 55
    assert actual == expected
示例#7
0
def test7_three():
    actual = sum_series2(3)
    expected = 2
    assert actual == expected
示例#8
0
def test7_two():
    actual = sum_series2(2)
    expected = 1
    assert actual == expected
示例#9
0
def test7_zero():
    actual = sum_series2(0)
    expected = 0
    assert actual == expected