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

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