We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a9f5a commit 95f713eCopy full SHA for 95f713e
1 file changed
golang/lib_test.go
@@ -649,11 +649,10 @@ func TestUnsafeOperations(t *testing.T) {
649
// Test FilteredSearchUnsafe
650
handler := &FilteredSearchHandler{
651
f: func(key Key, ptr unsafe.Pointer) int {
652
- fmt.Println(key)
653
if key%2 == 0 {
654
- return 1
+ return 0
655
}
656
- return 0
+ return 1
657
},
658
659
@@ -662,13 +661,9 @@ func TestUnsafeOperations(t *testing.T) {
662
661
t.Fatalf("FilteredSearchUnsafe failed: %v", err)
663
664
665
- if len(keys) == 0 || keys[0] != 100 {
+ if len(keys) > 0 {
666
t.Fatalf("FilteredSearchUnsafe returned incorrect results")
667
668
-
669
- if math.Abs(float64(distances[0])) > distanceTolerance {
670
- t.Fatalf("Expected near-zero distance for exact match, got %f", distances[0])
671
- }
672
})
673
674
0 commit comments