Skip to content

Commit

Permalink
test rank()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishan-Ved committed Jul 7, 2024
1 parent 45853fc commit 2bad5e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pydatastructs/trees/tests/test_binary_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ def _test_AVLTree(backend):

assert a5.rank(-1) is None
def test_select_rank(expected_output):
output = []
for i in range(len(expected_output)):
output.append(a5.select(i + 1).key)
assert output == expected_output
# output = []
# for i in range(len(expected_output)):
# output.append(a5.select(i + 1).key)
# assert output == expected_output
output = []
expected_ranks = [i + 1 for i in range(len(expected_output))]
for i in range(len(expected_output)):
Expand Down Expand Up @@ -388,7 +388,7 @@ def test_AVLTree():
_test_AVLTree(backend=Backend.PYTHON)
def test_cpp_AVLTree():
_test_AVLTree(backend=Backend.CPP)

test_cpp_AVLTree()
def _test_BinaryIndexedTree(backend):

FT = BinaryIndexedTree
Expand Down

0 comments on commit 2bad5e6

Please sign in to comment.