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