1818
1919from . import games
2020
21- TOL = 1e-13 # tolerance for floating point assertions
21+ TOL = 1e-13 # standard tol for floating point assertions; not used only when it is too small
22+
2223TOL_LARGE = 1e-3 # larger tolerance for floating point assertions
2324TOL_HUGE = 1e-2 # huge tolerance for floating point assertions
2425
@@ -35,7 +36,7 @@ class EquilibriumTestCase:
3536 """Summarising the data relevant for a test fixture of a call to an equilibrium solver."""
3637
3738 factory : typing .Callable [[], gbt .Game ]
38- solver : typing .Callable [[gbt .Game ], gbt .qre . LogitQREMixedStrategyFitResult ]
39+ solver : typing .Callable [[gbt .Game ], gbt .nash . NashComputationResult ]
3940 expected : list
4041 regret_tol : float | gbt .Rational = Q (0 )
4142 prob_tol : float | gbt .Rational = Q (0 )
@@ -46,7 +47,7 @@ class QREquilibriumTestCase:
4647 """Summarising the data relevant for a test fixture of a call to an QRE solver."""
4748
4849 factory : typing .Callable [[], gbt .Game ]
49- solver : typing .Callable [[gbt .Game ], gbt .nash . NashComputationResult ]
50+ solver : typing .Callable [[gbt .Game ], gbt .qre . LogitQREMixedStrategyFitResult ]
5051 expected : list
5152 prob_tol : float
5253 lam_tol : float
@@ -2450,8 +2451,8 @@ def test_simpdiv_strategy():
24502451 {"idx" : 1 , "lam" : 2 , "profile" : [d (0.7727 , 0.2273 ), d (0.6117 , 0.3883 )]},
24512452 {"idx" : 2 , "lam" : 3 , "profile" : [d (0.8595 , 0.1405 ), d (0.6038 , 0.39618 )]},
24522453 ],
2453- prob_tol = TOL_LARGE ,
2454- lam_tol = TOL_LARGE ,
2454+ prob_tol = TOL ,
2455+ lam_tol = TOL ,
24552456 ),
24562457 marks = pytest .mark .qre_logit ,
24572458 id = "test_logit_lambda_1" ,
0 commit comments