From 608ff1a3d59469bcd30f1c041a99b205cf5d7051 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Fri, 10 Jan 2025 21:21:12 +1300 Subject: [PATCH] Fix incorrect tests --- tests/indexed_queue.py | 2 +- tests/pure_queue.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/indexed_queue.py b/tests/indexed_queue.py index c829962..37b7cc2 100644 --- a/tests/indexed_queue.py +++ b/tests/indexed_queue.py @@ -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) diff --git a/tests/pure_queue.py b/tests/pure_queue.py index 559fe9f..4e709db 100644 --- a/tests/pure_queue.py +++ b/tests/pure_queue.py @@ -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]