File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -4677,13 +4677,19 @@ def test_use_fmpz_mod2():
46774677 assert use_fmpz_mod2 () == 1
46784678
46794679
4680+ def test_use_fmpz_is_probabprime ():
4681+ from flint .types .fmpz_mod import use_fmpz_is_probabprime
4682+ assert use_fmpz_is_probabprime () == 1
4683+
4684+
46804685all_tests = [
46814686
46824687 test_pyflint ,
46834688 test_showgood ,
46844689
46854690 test_use_fmpz_mod1 ,
46864691 test_use_fmpz_mod2 ,
4692+ test_use_fmpz_is_probabprime ,
46874693
46884694 test_fmpz ,
46894695 test_fmpz_factor ,
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ def use_fmpz_mod2():
6060 return c
6161
6262
63+ def use_fmpz_is_probabprime ():
64+ cdef fmpz p
65+ p = fmpz(2 ** 127 - 1 )
66+ return fmpz_is_probabprime(p.val)
67+
68+
6369cdef class fmpz_mod_ctx:
6470 r """
6571 Context object for creating :class:`~. fmpz_mod` initialised
You can’t perform that action at this time.
0 commit comments