fix(slice): handle Intersection without inputs (#366)

This commit is contained in:
Yusuf Efe authored and GitHub committed 2026-10-23 20:54:26 +08:00
1 parent 129da3f2ed
commit f220ea4c3f
2 files changed
+4

No files matched your search

+1
View File
@@ -1105,6 +1105,7 @@ func TestIntersection(t *testing.T) {
t.Parallel()
assert := internal.NewAssert(t, "TestIntersection")
assert.Equal([]int{}, Intersection[int]())
s1 := []int{1, 2, 2, 3}
s2 := []int{1, 2, 3, 4}