8000 update · mohuishou/go-algorithm@bdb2bf8 · GitHub
[go: up one dir, main page]

Skip to content

Commit bdb2bf8

Browse files
committed
update
1 parent 074ade2 commit bdb2bf8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Graph/Graph_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package Graph
22

33
import (
4-
"fmt"
5-
"testing"
4+
"fmt"
5+
"testing"
66
)
77

88
func TestGraph(t *testing.T) {
9-
graph := BuildGraph("test.txt")
10-
fmt.Println(graph)
11-
e := graph[1].FisrtEdge
12-
for e != nil {
13-
if e.v != 2 || e.weight != 3 {
14-
t.Fatal("错误:建图失败,e.v!=2,e.weight!=3")
15-
}
16-
e = e.next
17-
}
9+
graph := BuildGraph("test.txt")
10+
fmt.Println(graph)
11+
e := graph[1].FisrtEdge
12+
for e != nil {
13+
if e.v != 2 || e.weight != 3 {
14+
t.Fatal("错误:建图失败,e.v!=2,e.weight!=3")
15+
}
16+
e = e.next
17+
}
1818
}

0 commit comments

Comments
 (0)
0