Skip to content

Commit

Permalink
Removed experimental package
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-Awad committed Sep 15, 2024
1 parent 920abd6 commit 06f55c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ require github.com/stretchr/testify v1.9.0
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
7 changes: 4 additions & 3 deletions tests/hnswgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package tests
import (
"fmt"
"math"
"sort"
"testing"
"time"

"golang.org/x/exp/slices"

"github.com/Eigen-DB/hnswgo"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -155,7 +154,9 @@ func TestSearchKNN(t *testing.T) {
t.Fatalf("Error when performing similarity search: %s", err.Error())
}

slices.Sort(nnLabels)
sort.Slice(nnLabels, func(i, j int) bool {
return nnLabels[i] < nnLabels[j]
})

assert.Equal(t, []uint32{0, 1, 2, 3, 4}, nnLabels)

Expand Down

0 comments on commit 06f55c3

Please sign in to comment.