Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishan-Ved committed Jul 2, 2024
1 parent e28a5ce commit faf92ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pydatastructs/trees/tests/test_binary_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ def test_select_rank(expected_output):
print(a5.select(i + 1).key)
assert a5.select(i + 1).key == expected_output[i]

output = []
expected_ranks = [i + 1 for i in range(len(expected_output))]
for i in range(len(expected_output)):
output.append(a5.rank(expected_output[i]))
assert output == expected_ranks
# output = []
# expected_ranks = [i + 1 for i in range(len(expected_output))]
# for i in range(len(expected_output)):
# output.append(a5.rank(expected_output[i]))
# assert output == expected_ranks

# test_select_rank([2, 3, 5, 9, 10, 11, 12, 13, 15, 17, 18, 20, 30, 33])
test_select_rank([2, 3, 5, 9, 10, 11, 12, 13, 15, 17, 18, 20, 30, 33])
a5.delete(9)
a5.delete(13)
a5.delete(20)
Expand Down

0 comments on commit faf92ca

Please sign in to comment.