Skip to content

Commit 32ff2cd

Browse files
authored
chore: added test case for zero sum triplets (#155)
1 parent 47bb1d9 commit 32ff2cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

array/zero_sum_triplets_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func TestZeroSumTriplets(t *testing.T) {
2323
{[]int{1, 2}, [][]int{}},
2424
{[]int{1, 2, 3}, [][]int{}},
2525
{[]int{1, -4, 3}, [][]int{{-4, 1, 3}}},
26+
{[]int{0, 0, 0, 0}, [][]int{{0, 0, 0}}},
2627
{[]int{1, 2, -4, 6, 3}, [][]int{{-4, 1, 3}}},
2728
{[]int{-1, -2, -8, 6, 2, 3}, [][]int{{-8, 2, 6}, {-2, -1, 3}}},
2829
{[]int{1, -2, -4, 5, -2, 4, 1, 3}, [][]int{{-4, 1, 3}, {-2, -2, 4}, {-2, 1, 1}}},

0 commit comments

Comments
 (0)