コード例 #1
0
def test_metroville_to_pandora(flights):
    graph = flights[0]
    routes = [flights[4], flights[1]]
    actual = get_edge(graph, routes)
    assert actual == (True, 82)
コード例 #2
0
def test_graph_empty():
    graph = Graph()
    routes = []
    actual = get_edge(graph, routes)
    assert actual == (False, 0)
コード例 #3
0
def test_naboo_to_pandora(flights):
    graph = flights[0]
    route = [flights[6], flights[1]]
    actual = get_edge(graph, route)
    assert actual == (False, 0)
コード例 #4
0
def test_narnia_to_arendelle_to_neboo(flights):
    graph = flights[0]
    route = [flights[2], flights[3], flights[6]]
    actual = get_edge(graph, route)
    assert actual == (False, 0)
コード例 #5
0
def test_arendelle_to_monstropolis_to_neboo(flights):
    graph = flights[0]
    routes = [flights[3], flights[5], flights[6]]
    actual = get_edge(graph, routes)
    assert actual == (True, 115)