diff --git a/tests/test_factor_qs.py b/tests/test_factor_qs.py new file mode 100644 index 0000000..36b0807 --- /dev/null +++ b/tests/test_factor_qs.py @@ -0,0 +1,9 @@ +import pytest +from kryptools import is_prime +from kryptools.factor_qs import factor_qs + + +def test_qs(): + for n in [ 832283, 2**32+1 ]: + m = factor_qs(n) + assert n % m == 0 and 1 < m and m < n