Esempio n. 1
0
def test_initial_gscore_sets_infinity_for_all_except_start_node(map_40):
    planner = PathPlanner(map_40, 2, 39)
    g_score = planner.create_gScore()
    for score in g_score:
        if score != 2:
            assert g_score[score] == math.inf
Esempio n. 2
0
def test_initial_gscore_sets_zero_for_start_node(map_40):
    planner = PathPlanner(map_40, 1, 34)
    g_score = planner.create_gScore()
    assert 0 == g_score[1]