Skip to content

Commit 794a266

Browse files
committed
Extra empty list test
1 parent 8ba54ee commit 794a266

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎intersect_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ func TestIntersect(t *testing.T) {
186186
result7 := Intersect([]int{0, 6, 0, 3}, []int{0, 1, 2, 3, 4, 5}, []int{0, 6})
187187
result8 := Intersect([]int{0, 6, 0, 3}, []int{0, 1, 2, 3, 4, 5}, []int{1, 6})
188188
result9 := Intersect([]int{0, 1, 1}, []int{2})
189+
result10 := Intersect([]int{0, 1, 1}, []int{1}, []int{})
189190

190191
is.Empty(result0)
191192
is.Equal([]int{1}, result1)
@@ -197,6 +198,7 @@ func TestIntersect(t *testing.T) {
197198
is.Equal([]int{0}, result7)
198199
is.Empty(result8)
199200
is.Empty(result9)
201+
is.Empty(result10)
200202

201203
type myStrings []string
202204
allStrings := myStrings{"", "foo", "bar"}

0 commit comments

Comments
 (0)