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]