Skip to content

Commit 69b6185

Browse files
author
nnethercott
committed
bump tests
1 parent b0a056f commit 69b6185

6 files changed

+375
-444
lines changed

src/tests/reader.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ fn two_dimension_on_a_line() {
117117

118118
// if we can't look into enough nodes we find some random points
119119
let ret = reader.nns(5).search_k(NonZeroUsize::new(1).unwrap()).by_item(&rtxn, 1).unwrap();
120-
insta::assert_snapshot!(NnsRes(ret), @"id(63): distance(62)");
120+
insta::assert_snapshot!(NnsRes(ret), @r"
121+
id(1): distance(0)
122+
id(0): distance(1)
123+
");
121124

122125
// if we can look into all the node there is no inifinite loop and it works
123126
let ret =

src/tests/snapshots/arroy__tests__upgrade__large_upgrade_v0_6_to_v0_7-10.snap

Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.

src/tests/snapshots/arroy__tests__writer__write_and_update_lot_of_random_points-2.snap

Lines changed: 122 additions & 150 deletions
Large diffs are not rendered by default.

src/tests/snapshots/arroy__tests__writer__write_and_update_lot_of_random_points.snap

Lines changed: 76 additions & 110 deletions
Large diffs are not rendered by default.

src/tests/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn simple_upgrade_v0_6_to_v0_7() {
7777
Dumping index 0
7878
Root: Metadata { dimensions: 2, items: RoaringBitmap<[0, 1, 2, 3, 4, 5]>, roots: [0], distance: "euclidean" }
7979
Version: Version { major: 0, minor: 7, patch: 0 }
80-
Tree 0: SplitPlaneNormal(SplitPlaneNormal<euclidean> { left: 5, right: 4, normal: [1.0000, 0.0000] })
80+
Tree 0: SplitPlaneNormal(SplitPlaneNormal<euclidean> { left: 5, right: 4, normal: Leaf { header: NodeHeaderEuclidean { bias: 0.0 }, vector: [1.0000, 0.0000] } })
8181
Tree 1: Descendants(Descendants { descendants: [1, 5] })
8282
Tree 2: Descendants(Descendants { descendants: [3, 4] })
8383
Tree 3: SplitPlaneNormal(SplitPlaneNormal<euclidean> { left: 2, right: 6, normal: "none" })

0 commit comments

Comments
 (0)