Exemplo n.º 1
0
def test_case_2():
    assert solution(2.00000, 10) == 1024.0000
Exemplo n.º 2
0
def test_case_1():

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