Exemple #1
0
def test_also_linked():
    """

    :return:
    """
    assert ways.way(("A-B", "C-D", "B-X", "C-W", "A-Q", "Q-R", "D-T"), "C",
                    "T") == True
Exemple #2
0
def test_unlinked():
    """

    :return:
    """
    assert ways.way(("A-B", "C-D", "E-F"), "X", "Y") == False
Exemple #3
0
def test_linked():
    """

    :return:
    """
    assert ways.way(("A-B", "B-C", "C-D"), "A", "D") == True
Exemple #4
0
def test_direct():
    """

    :return:
    """
    assert ways.way(("A-B", "C-D", "E-F"), "A", "B") == True
Exemple #5
0
def test_direct():
    assert ways.way(("A-B", "C-D", "E-F"), "A", "B") == True
Exemple #6
0
def test_unlinked():
    assert ways.way(("A-B", "C-D", "E-F"), "X", "Y") == False
Exemple #7
0
def test_linked():
    assert ways.way(("A-B", "B-C", "C-D"), "A", "D") == True