From 2c9567e42d2e96de3479f95125f0fff04ff52c2d Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 25 May 2022 14:17:04 -0500 Subject: begin refactor to use quadtree --- modules/KDTree.test.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 modules/KDTree.test.js (limited to 'modules/KDTree.test.js') diff --git a/modules/KDTree.test.js b/modules/KDTree.test.js deleted file mode 100644 index 4e2657b..0000000 --- a/modules/KDTree.test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { test, assert } from './test-assert.js'; - -import { KDTree, NodeType } from './KDTree.js'; - -test('single point does not split tree', () => { - let tree = new KDTree(); - tree.insert({x: 0.5, y: 0.5 }); - assert.deepEqual(tree.root.type, NodeType.Leaf); - assert.ok(tree.root.point); - assert(tree.root.point.x = 0.5); - assert(tree.root.point.y = 0.5); -}); -- cgit v1.2.1