@@ -3,7 +3,7 @@ package problem993
3
3
import (
4
4
"testing"
5
5
6
- . "github.com/openset/leetcode/internal/kit"
6
+ "github.com/openset/leetcode/internal/kit"
7
7
)
8
8
9
9
type caseType struct {
@@ -22,32 +22,32 @@ func TestIsCousins(t *testing.T) {
22
22
expected : false ,
23
23
},
24
24
{
25
- input : []int {1 , 2 , 3 , NULL , 4 , NULL , 5 },
25
+ input : []int {1 , 2 , 3 , kit . NULL , 4 , kit . NULL , 5 },
26
26
x : 5 ,
27
27
y : 4 ,
28
28
expected : true ,
29
29
},
30
30
{
31
- input : []int {1 , 2 , 3 , NULL , 4 },
31
+ input : []int {1 , 2 , 3 , kit . NULL , 4 },
32
32
x : 2 ,
33
33
y : 3 ,
34
34
expected : false ,
35
35
},
36
36
{
37
- input : []int {1 , 2 , 3 , NULL , 4 , 5 },
37
+ input : []int {1 , 2 , 3 , kit . NULL , 4 , 5 },
38
38
x : 4 ,
39
39
y : 5 ,
40
40
expected : true ,
41
41
},
42
42
{
43
- input : []int {1 , 2 , 3 , NULL , 4 , 5 },
43
+ input : []int {1 , 2 , 3 , kit . NULL , 4 , 5 },
44
44
x : 5 ,
45
45
y : 4 ,
46
46
expected : true ,
47
47
},
48
48
}
49
49
for _ , tc := range tests {
50
- output := isCousins (SliceInt2TreeNode (tc .input ), tc .x , tc .y )
50
+ output := isCousins (kit . SliceInt2TreeNode (tc .input ), tc .x , tc .y )
51
51
if output != tc .expected {
52
52
t .Fatalf ("input: %v, output: %v, expected: %v" , tc .input , output , tc .expected )
53
53
}
0 commit comments