@@ -30,7 +30,7 @@ def raises(f, exception):
3030prec = 53 # real/complex precision (in bits)
3131dps = 15 # real/complex precision (in digits)
3232cap = 10 # power series precision
33- threads = 1 # max number of threads used internally
33+ threads = 1 # max number of threads used internally\
3434 """
3535
3636def test_pyflint ():
@@ -78,6 +78,9 @@ def test_pyflint():
7878 assert raises (lambda : setattr (ctx , "prec" , - 1 ), ValueError )
7979 assert raises (lambda : setattr (ctx , "dps" , - 1 ), ValueError )
8080
81+ def test_showgood ():
82+ from flint import good , showgood
83+
8184def test_fmpz ():
8285 assert flint .fmpz () == flint .fmpz (0 )
8386 L = [0 , 1 , 2 , 3 , 2 ** 31 - 1 , 2 ** 31 , 2 ** 63 - 1 , 2 ** 63 , 2 ** 64 - 1 , 2 ** 64 ]
@@ -2422,10 +2425,14 @@ def setbad(obj, i, val):
24222425 if is_field :
24232426 assert P ([1 , 2 , 1 ]).integral () == P ([0 , 1 , 1 , S (1 )/ 3 ])
24242427
2425-
2428+ def test_all_tests ():
2429+ test_funcs = {f for name , f in globals ().items () if name .startswith ("test_" )}
2430+ untested = test_funcs - set (all_tests )
2431+ assert not untested , f"Untested functions: { untested } "
24262432
24272433all_tests = [
24282434 test_pyflint ,
2435+ test_showgood ,
24292436 test_fmpz ,
24302437 test_fmpz_factor ,
24312438 test_fmpz_functions ,
@@ -2441,9 +2448,12 @@ def setbad(obj, i, val):
24412448 test_nmod ,
24422449 test_nmod_poly ,
24432450 test_nmod_mat ,
2451+ test_nmod_series ,
24442452 test_arb ,
24452453 test_fmpz_mod ,
24462454 test_fmpz_mod_dlog ,
24472455 test_fmpz_mod_poly ,
24482456 test_polys ,
2457+ test_pickling ,
2458+ test_all_tests ,
24492459]
0 commit comments