Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Novas funcionalidades mas erro nos testes do marcar_obstáculo e desmarcar_obstáculo #8

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
refactor(tests): remove outdated Dijkstra tests due to output changes
  • Loading branch information
me15degrees committed Oct 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 79de482bab695b1971eb240b176efeb39e50e53a
13 changes: 1 addition & 12 deletions Path Finding/Python/tests/test_dijkstra.py
Original file line number Diff line number Diff line change
@@ -38,20 +38,9 @@

def test_dijkstra_menor_caminho():
grafo = Grafo(matriz_lista_adjacencia)
caminho, distancia, direcoes = grafo.dijkstra_menor_caminho(1, 9)
caminho, distancia, direcoes = grafo.dijkstra(1, 9)
assert caminho == [1, 7, 8, 9]

def test_coordenadas_consecutivas_sem_direcoes():
grafo = Grafo(matriz_lista_adjacencia)
resultado = grafo.coordenadas_consecutivas([])
assert resultado == "Nenhum caminho encontrado"

def test_coordenadas_consecutivas():
grafo = Grafo(matriz_lista_adjacencia)
direcoes = ['S', 'S', 'L', 'L', 'O']
resultado = grafo.coordenadas_consecutivas(direcoes)
assert resultado == "2S,2L,1O"

def test_mostrar_matriz(capsys):
grafo = Grafo(matriz_lista_adjacencia)
grafo.mostrar_matriz()