File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/test/java/com/thealgorithms/datastructures/trees Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public void testInsertIntoQuadTreeAndSubDivide() {
3030 Assertions .assertTrue (quadTree .insert (new Point (-10 , -10 )));
3131 Assertions .assertTrue (quadTree .insert (new Point (10 , 10 )));
3232 Assertions .assertTrue (quadTree .insert (new Point (-100 , 100 )));
33- Assertions .assertTrue (quadTree .insert (new Point (100 , -100 )));
33+ Assertions .assertTrue (quadTree .insert (new Point (100 , -101 )));
3434 Assertions .assertTrue (quadTree .insert (new Point (-100 , -100 )));
3535 Assertions .assertTrue (quadTree .insert (new Point (100 , 100 )));
3636 }
@@ -51,5 +51,8 @@ public void testQueryInQuadTree() {
5151
5252 points = quadTree .query (new BoundingBox (new Point (5 , 5 ), 5 ));
5353 Assertions .assertEquals (1 , points .size ());
54+
55+ points = quadTree .query (new BoundingBox (new Point (-200 , -200 ), 5 ));
56+ Assertions .assertEquals (0 , points .size ());
5457 }
5558}
You can’t perform that action at this time.
0 commit comments