Skip to content

Commit 04813ff

Browse files
author
openset
committed
Add: test
1 parent ecedda5 commit 04813ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

problems/path-sum/path_sum_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ func TestHasPathSum(t *testing.T) {
1919
sum: 22,
2020
want: true,
2121
},
22+
{
23+
in: []int{5, 8, 4, 4, 13, kit.NULL, 11, 7, 2},
24+
sum: 22,
25+
want: false,
26+
},
2227
}
2328
for _, tt := range tests {
2429
got := hasPathSum(kit.SliceInt2TreeNode(tt.in), tt.sum)

0 commit comments

Comments
 (0)