コード例 #1
0
ファイル: testTSP.py プロジェクト: juanflorezVe/COMP9058_lab1
def test_dstance_big_numbers():
    origen = (793699, 274913)
    destination = (981665, 218777)
    assert (TSP.distance(origen, destination) == 196169)
コード例 #2
0
ファイル: testTSP.py プロジェクト: juanflorezVe/COMP9058_lab1
def test_distance_from_origen():
    assert (TSP.distance((0, 0), (5, 0)) == 5)
    assert (TSP.distance((0, 0), (0, 5)) == 5)