mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 09:10:16 +00:00
changing tab to double spaces to capture in doctest
This commit is contained in:
parent
77edabebb5
commit
3e623c1476
|
@ -10,9 +10,9 @@ def _print_dist(dist, v):
|
||||||
for i in range(v):
|
for i in range(v):
|
||||||
for j in range(v):
|
for j in range(v):
|
||||||
if dist[i][j] != float("inf"):
|
if dist[i][j] != float("inf"):
|
||||||
print(int(dist[i][j]), end="\t")
|
print(int(dist[i][j]), end=" ")
|
||||||
else:
|
else:
|
||||||
print("INF", end="\t")
|
print("INF", end=" ")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ def floyd_warshall(graph, v):
|
||||||
>>> dist, _ = floyd_warshall(graph, 3)
|
>>> dist, _ = floyd_warshall(graph, 3)
|
||||||
The shortest path matrix using Floyd Warshall algorithm
|
The shortest path matrix using Floyd Warshall algorithm
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
0 3 INF
|
0 3 INF
|
||||||
2 0 INF
|
2 0 INF
|
||||||
9 7 0
|
9 7 0
|
||||||
>>> dist == expected
|
>>> dist == expected
|
||||||
True
|
True
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user