Fix incorrect tests
This commit is contained in:
parent
38a544db76
commit
608ff1a3d5
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue