Пример #1
0
def test_case_2():
    assert solution(2.00000, 10) == 1024.0000
Пример #2
0
def test_case_1():

    answer = httpGetReq(5)
    assert solution('korea') == answer
Пример #3
0
def test_case_3():
    assert solution(2.10000, 3) == 9.261000000000001
Пример #4
0
def test_case_1():
    assert solution(2, 4) == 16
Пример #5
0
def test_case_4():
    test_case = [
        'dog', 'cat', 'pudding', 'cat', 'pizza', 'soju', 'dog', 'dog',
        'hamburger'
    ]
    assert solution(test_case) == 6
Пример #6
0
def test_case_2():
    assert solution(-123) == -321
Пример #7
0
def test_case_5():
    assert solution(0) == 0
Пример #8
0
def test_case_1():
    heightList = [4, 10]
    assert solution(heightList) == 4
Пример #9
0
def test_case_3():
    assert solution(120) == 21
Пример #10
0
def test_case_4():
    assert solution(-1827) == -7281
Пример #11
0
def test_case_2():
    test_case = [1, 1, 1, 1, 1]
    assert solution(test_case) == 1
Пример #12
0
def test_case_1():
    test_case = [1, 1, 2]
    assert solution(test_case) == 2
Пример #13
0
def test_case_5():
    test_case = []
    assert solution(test_case) == 0
Пример #14
0
def test_case_3():
    heightList = [25, 15, 18]
    assert solution(heightList) == 36
Пример #15
0
def test_case_6():
    assert solution(-0) == 0
Пример #16
0
def test_case_4():
    heightList = [8, 10, 12, 29]
    assert solution(heightList) == 24
Пример #17
0
def test_case_1():
    assert solution(123) == 321
Пример #18
0
def test_case_2():
    heightList = [25, 15]
    assert solution(heightList) == 15
Пример #19
0
def test_case_3():
    test_case = ['a', 'b', 'a', 'c', 'd', 'e', 'e', 'z']
    assert solution(test_case) == 6