source/projects/damm/test/python/test_hypothesis.py
Reid 'arrdem' McKenzie 44f4a0aaa8 Lint repo.
2021-08-04 00:17:20 -06:00

10 lines
262 B
Python

from damm import Damm
from hypothesis import given
from hypothesis.strategies import integers
@given(integers(0, 1<<512))
def test_num_checks_verify(num):
"""Assert the generated Damm check for number verifies."""
assert Damm.verify(Damm.encode(num))