13 lines
253 B
Python
13 lines
253 B
Python
from rustapi_module._test_dict import DictSize
|
|
import pytest
|
|
|
|
@pytest.mark.parametrize(
|
|
"size",
|
|
[64, 128, 256],
|
|
)
|
|
def test_size(size):
|
|
d = {}
|
|
for i in range(0,size):
|
|
d[i] = str(i)
|
|
assert DictSize(len(d)).iter_dict(d) == size
|