Fix incorrect tests

This commit is contained in:
Michael Bradley 2025-01-10 21:21:12 +13:00
parent 38a544db76
commit 608ff1a3d5
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ def test_empty_creation():
{"a": 0, "b": 1, "c": 2},
))
def test_creation(items: IndexedQueueInitializer):
queue = IndexedQueue()
queue = IndexedQueue(items)
assert len(queue) == len(items)

View file

@ -17,7 +17,7 @@ def test_empty_creation():
@pytest.mark.parametrize("items", ([], [0, 1, 2], (0, 1, 2), (0.0, 1.0, 2.0), range(100)))
def test_creation(items: PureQueueInitializer):
queue = PureQueue()
queue = PureQueue(items)
assert len(queue) == len(items)
@ -76,4 +76,4 @@ def test_mixed_iteration():
results.append(number)
if len(queue):
queue.insert(queue.pop() * 2)
assert results == [2, 6, 8, 16]
assert results == [2, 6, 8, 32]