Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f1f5862

Browse files
committedSep 3, 2024
Considered ruff errors
1 parent 2cf9d92 commit f1f5862

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎data_structures/kd_tree/tests/test_kdtree.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@pytest.mark.parametrize(
11-
"num_points, cube_size, num_dimensions, depth, expected_result",
11+
("num_points", "cube_size", "num_dimensions", "depth", "expected_result"),
1212
[
1313
(0, 10.0, 2, 0, None), # Empty points list
1414
(10, 10.0, 2, 2, KDNode), # Depth = 2, 2D points
@@ -42,7 +42,8 @@ def test_build_kdtree(num_points, cube_size, num_dimensions, depth, expected_res
4242
f"Expected point dimension {num_dimensions}, got {len(kdtree.point)}"
4343

4444
# Check that the tree is balanced to some extent (simplistic check)
45-
assert isinstance(kdtree, KDNode), f"Expected KDNode instance, got {type(kdtree)}"
45+
assert isinstance(kdtree, KDNode), \
46+
f"Expected KDNode instance, got {type(kdtree)}"
4647

4748

4849
def test_nearest_neighbour_search():

0 commit comments

Comments
 (0)
Please sign in to comment.