Exemple #1
0
def test_case_2():
    assert solution(2.00000, 10) == 1024.0000
Exemple #2
0
def test_case_1():

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