Пример #1
0
def test_1():
    assert triangle(1) == 1
Пример #2
0
def test_0():
    assert triangle(0) == 0
Пример #3
0
def test_7():
    assert triangle(7) == 28
Пример #4
0
def test_6():
    assert triangle(6) == 21
Пример #5
0
def test_5():
    assert triangle(5) == 15
Пример #6
0
def test_4():
    assert triangle(4) == 10
Пример #7
0
def test_3():
    assert triangle(3) == 6
Пример #8
0
def test_2():
    assert triangle(2) == 3