pyo3/pytests/tests/test_dict_iter.py

11 lines
238 B
Python
Raw Normal View History

import pytest
from pyo3_pytests.dict_iter import DictSize
2019-09-05 23:16:09 +00:00
@pytest.mark.parametrize("size", [64, 128, 256])
def test_size(size):
d = {}
2018-11-12 15:53:06 +00:00
for i in range(size):
d[i] = str(i)
assert DictSize(len(d)).iter_dict(d) == size