Merge pull request #688 from RonaldoCMP/master

Update vector search functions
This commit is contained in:
Revar Desmera
2021-10-11 18:35:31 -07:00
committed by GitHub
2 changed files with 24 additions and 14 deletions

View File

@@ -178,7 +178,7 @@ test_vector_search();
module test_vector_search_tree(){
points1 = [ [0,1,2], [1,2,3], [2,3,4] ];
tree1 = vector_search_tree(points1);
assert(tree1 == [ points1, [[0,1,2]] ]);
assert(tree1 == points1);
points2 = [for(i=[0:9], j=[0:9], k=[1:5]) [i,j,k] ];
tree2 = vector_search_tree(points2);
assert(tree2[0]==points2);