import files, add README & LICENSE

This commit is contained in:
2026-06-29 17:06:34 -07:00
commit aecd90eb84
17 changed files with 2552 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package cursor
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestDereferenceSlice(t *testing.T) {
a, b := 1, 2
result := DereferenceSlice([]*int{&a, nil, &b})
assert.Equal(t, []int{1, 2}, result)
assert.Empty(t, DereferenceSlice([]*int{}))
assert.Empty(t, DereferenceSlice[int](nil))
}