Example #1
0
def test_route_cost_1():
    graph = setup()
    assert getRouteCost(graph, 'A-B-C') == 9
Example #2
0
def test_route_cost_5():
    graph = setup()
    assert getRouteCost(graph, 'A-E-D') == 'NO SUCH ROUTE'
Example #3
0
def test_route_cost_3():
    graph = setup()
    assert getRouteCost(graph, 'A-D-C') == 13
Example #4
0
def test_route_cost_4():
    graph = setup()
    assert getRouteCost(graph, 'A-E-B-C-D') == 22
Example #5
0
def test_route_cost_2():
    graph = setup()
    assert getRouteCost(graph, 'A-D') == 5