Skip to content

Commit 0d7f3a3

Browse files
committed
✨ (sum_test): add testsumall
1 parent 3912216 commit 0d7f3a3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arrays-and-slices/sum_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ func TestSum(t *testing.T) {
2525
}
2626
})
2727
}
28+
29+
func TestSumAll(t *testing.T) {
30+
31+
got := SumAll([]int{1, 2}, []int{0, 9})
32+
want := []int{3, 9}
33+
34+
if got != want {
35+
t.Errorf("got %v want %v", got, want)
36+
}
37+
}

0 commit comments

Comments
 (0)