예제 #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