pyo3/pytests/tests/test_dict_iter.py
2022-02-05 10:16:46 +00:00

11 lines
238 B
Python

import pytest
from pyo3_pytests.dict_iter import DictSize
@pytest.mark.parametrize("size", [64, 128, 256])
def test_size(size):
d = {}
for i in range(size):
d[i] = str(i)
assert DictSize(len(d)).iter_dict(d) == size