Skip to content

Commit

Permalink
update a test playing with -0.0 and 0.0 since -0.0 doesn't answer the…
Browse files Browse the repository at this point in the history
… same way to is_positive under x86 and aarch64
  • Loading branch information
irevoire committed Sep 17, 2024
1 parent 605b33a commit df654bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/binary_quantized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn write_and_retrieve_binary_quantized_vector() {
&mut wtxn,
0,
&[
-2.0, -1.0, 0.0, -0.0, 2.0, 2.0, -12.4, 21.2, -2.0, -1.0, 0.0, 1.0, 2.0, 2.0,
-2.0, -1.0, 0.0, -0.1, 2.0, 2.0, -12.4, 21.2, -2.0, -1.0, 0.0, 1.0, 2.0, 2.0,
-12.4, 21.2,
],
)
Expand All @@ -25,7 +25,7 @@ fn write_and_retrieve_binary_quantized_vector() {
-1.0,
-1.0,
1.0,
1.0,
-1.0,
1.0,
1.0,
-1.0,
Expand All @@ -47,7 +47,7 @@ fn write_and_retrieve_binary_quantized_vector() {
insta::assert_snapshot!(handle, @r###"
==================
Dumping index 0
Item 0: Leaf(Leaf { header: NodeHeaderBinaryQuantizedEuclidean { bias: 0.0 }, vector: [-1.0000, -1.0000, 1.0000, 1.0000, 1.0000, 1.0000, -1.0000, 1.0000, -1.0000, -1.0000, "other ..."] })
Item 0: Leaf(Leaf { header: NodeHeaderBinaryQuantizedEuclidean { bias: 0.0 }, vector: [-1.0000, -1.0000, 1.0000, -1.0000, 1.0000, 1.0000, -1.0000, 1.0000, -1.0000, -1.0000, "other ..."] })
Tree 0: Descendants(Descendants { descendants: [0] })
Root: Metadata { dimensions: 16, items: RoaringBitmap<[0]>, roots: [0], distance: "binary quantized euclidean" }
"###);
Expand Down

0 comments on commit df654bc

Please sign in to comment.