8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074ade2 commit bdb2bf8Copy full SHA for bdb2bf8
Graph/Graph_test.go
@@ -1,18 +1,18 @@
1
package Graph
2
3
import (
4
- "fmt"
5
- "testing"
+ "fmt"
+ "testing"
6
)
7
8
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
+ graph := BuildGraph("test.txt")
+ fmt.Println(graph)
+ e := graph[1].FisrtEdge
+ for e != nil {
+ if e.v != 2 || e.weight != 3 {
+ t.Fatal("错误:建图失败,e.v!=2,e.weight!=3")
+ }
+ e = e.next
18
}
0 commit comments