MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / Test1

Function Test1

133. Clone Graph/solution_test.go:7–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func Test1(t *testing.T) {
8 node1 := new(Node)
9 node1.Val = 1
10 node2 := new(Node)
11 node2.Val = 2
12 node1.Neighbors = append(node1.Neighbors,node2)
13 node2.Neighbors = append(node2.Neighbors,node1)
14 res := cloneGraph(node1)
15 if res == node1 {
16 t.Fatalf(``)
17 }
18}
19

Callers

nothing calls this directly

Calls 1

cloneGraphFunction · 0.85

Tested by

no test coverage detected