pyo3/examples/rustapi_module/tests/test_dict_iter.py
2019-09-06 01:16:09 +02:00

11 lines
240 B
Python

import pytest
from rustapi_module.test_dict 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