Skip to content

Commit 88fb58c

Browse files
committed
fix: update priority_queue tests to use comparator parameter
1 parent 3f8cd43 commit 88fb58c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_priority_queue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_max_heap_pop_order(self):
4646

4747
def test_min_heap_order(self):
4848
"""Test that min-heap returns smallest element."""
49-
pq = priority_queue(max_heap=False)
49+
pq = priority_queue(comparator="min")
5050
pq.push(30)
5151
pq.push(10)
5252
pq.push(50)
@@ -55,7 +55,7 @@ def test_min_heap_order(self):
5555

5656
def test_min_heap_pop_order(self):
5757
"""Test that elements are popped in ascending order from min-heap."""
58-
pq = priority_queue(max_heap=False)
58+
pq = priority_queue(comparator="min")
5959
elements = [30, 10, 50, 20, 40]
6060
for elem in elements:
6161
pq.push(elem)

0 commit comments

Comments
 (0)