Beispiel #1
0
def test_case3_1():
    print(case3[1])
    got = build.cost_to_build(*case3[1])
    expt = expt3[1]
    print(got)
    print(expt)
    assert got == expt
Beispiel #2
0
def test_case5_2():
    assert build.cost_to_build(*case5[2]) == expt5[2]
Beispiel #3
0
def test_case5_1():
    assert build.cost_to_build(*case5[1]) == expt5[1]
Beispiel #4
0
def test_case5_0():
    assert build.cost_to_build(*case5[0]) == expt5[0]
Beispiel #5
0
def test_case3_2():
    assert build.cost_to_build(*case3[2]) == expt3[2]
Beispiel #6
0
def test_case3_0():
    assert build.cost_to_build(*case3[0]) == expt3[0]
Beispiel #7
0
def test_case1_1():
    assert build.cost_to_build(*case1[1]) == expt1[1]
Beispiel #8
0
def test_case1_0():
    assert build.cost_to_build(*case1[0]) == expt1[0]
Beispiel #9
0
def test_case0_1():
    print(case0[1])
    assert build.cost_to_build(*case0[1]) == expt0[1]
Beispiel #10
0
def test_case_simple2():
    ss = "ab12ab"
    assert build.cost_to_build(2, 3, ss) == 11
Beispiel #11
0
def test_case_simple1():
    assert build.cost_to_build(1, 2, "aab") == 3