Skip to content

Commit

Permalink
chore: added test case for zero sum triplets (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaidensiu authored Dec 9, 2024
1 parent 47bb1d9 commit 32ff2cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions array/zero_sum_triplets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func TestZeroSumTriplets(t *testing.T) {
{[]int{1, 2}, [][]int{}},
{[]int{1, 2, 3}, [][]int{}},
{[]int{1, -4, 3}, [][]int{{-4, 1, 3}}},
{[]int{0, 0, 0, 0}, [][]int{{0, 0, 0}}},
{[]int{1, 2, -4, 6, 3}, [][]int{{-4, 1, 3}}},
{[]int{-1, -2, -8, 6, 2, 3}, [][]int{{-8, 2, 6}, {-2, -1, 3}}},
{[]int{1, -2, -4, 5, -2, 4, 1, 3}, [][]int{{-4, 1, 3}, {-2, -2, 4}, {-2, 1, 1}}},
Expand Down

0 comments on commit 32ff2cd

Please sign in to comment.