@@ -3,7 +3,7 @@ package problem993
33import (
44 "testing"
55
6- . "github.com/openset/leetcode/internal/kit"
6+ "github.com/openset/leetcode/internal/kit"
77)
88
99type caseType struct {
@@ -22,32 +22,32 @@ func TestIsCousins(t *testing.T) {
2222 expected : false ,
2323 },
2424 {
25- input : []int {1 , 2 , 3 , NULL , 4 , NULL , 5 },
25+ input : []int {1 , 2 , 3 , kit . NULL , 4 , kit . NULL , 5 },
2626 x : 5 ,
2727 y : 4 ,
2828 expected : true ,
2929 },
3030 {
31- input : []int {1 , 2 , 3 , NULL , 4 },
31+ input : []int {1 , 2 , 3 , kit . NULL , 4 },
3232 x : 2 ,
3333 y : 3 ,
3434 expected : false ,
3535 },
3636 {
37- input : []int {1 , 2 , 3 , NULL , 4 , 5 },
37+ input : []int {1 , 2 , 3 , kit . NULL , 4 , 5 },
3838 x : 4 ,
3939 y : 5 ,
4040 expected : true ,
4141 },
4242 {
43- input : []int {1 , 2 , 3 , NULL , 4 , 5 },
43+ input : []int {1 , 2 , 3 , kit . NULL , 4 , 5 },
4444 x : 5 ,
4545 y : 4 ,
4646 expected : true ,
4747 },
4848 }
4949 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 )
5151 if output != tc .expected {
5252 t .Fatalf ("input: %v, output: %v, expected: %v" , tc .input , output , tc .expected )
5353 }
0 commit comments