Skip to content

Commit

Permalink
remove slices pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rpanchapakesan committed Dec 10, 2023
1 parent 94135f8 commit 932ed9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"net/url"
"os"
"os/signal"
"slices"
"reflect"
"strings"
"syscall"
"testing"
Expand Down Expand Up @@ -1285,7 +1285,7 @@ func testVector(t *testing.T, json bool) {
t.Error(err)
}
wantInt := []int32{1, 2, 3}
if !slices.Equal(gotInt, wantInt) {
if !reflect.DeepEqual(gotInt, wantInt) {
t.Errorf("incorrect vector deserialized: got %v, want %v", gotInt, wantInt)
}

Expand All @@ -1300,7 +1300,7 @@ func testVector(t *testing.T, json bool) {
t.Error(err)
}
wantFloat := []float32{1.1, 2.2, 3, 4, 5}
if !slices.Equal(gotFloat, wantFloat) {
if !reflect.DeepEqual(gotFloat, wantFloat) {
t.Errorf("incorrect vector deserialized: got %v, want %v", gotFloat, wantFloat)
}
})
Expand Down

0 comments on commit 932ed9d

Please sign in to comment.