@@ -607,6 +607,7 @@ def test_lcp_behavior_rational(game: gbt.Game, mixed_behav_prof_data: list):
607607 using max_regret and agent_max_regret (internal consistency); and
608608 comparison to a previously computed equilibrium using this function (regression test).
609609 """
610+ game .sort_infosets ()
610611 result = gbt .nash .lcp_solve (game , use_strategic = False , rational = True )
611612 assert len (result .equilibria ) == 1
612613 eq = result .equilibria [0 ]
@@ -731,7 +732,7 @@ def test_lp_behavior_double():
731732 (
732733 games .create_seq_form_STOC_paper_zero_sum_2_player_efg (),
733734 [
734- [[0 , 1 ], ["1 /3" , "2 /3" ], ["2 /3" , "1 /3" ]],
735+ [[0 , 1 ], ["2 /3" , "1 /3" ], ["1 /3" , "2 /3" ]],
735736 [["5/6" , "1/6" ], ["5/9" , "4/9" ]],
736737 ],
737738 ),
@@ -784,12 +785,15 @@ def test_lp_behavior_rational(game: gbt.Game, mixed_behav_prof_data: list):
784785 using max_regret and agent_max_regret (internal consistency); and
785786 comparison to a previously computed equilibrium using this function (regression test).
786787 """
788+ game .sort_infosets ()
787789 result = gbt .nash .lp_solve (game , use_strategic = False , rational = True )
788790 assert len (result .equilibria ) == 1
789791 eq = result .equilibria [0 ]
790792 assert eq .max_regret () == 0
791793 assert eq .agent_max_regret () == 0
792794 expected = game .mixed_behavior_profile (rational = True , data = mixed_behav_prof_data )
795+ print (expected )
796+ print (eq )
793797 assert eq == expected
794798
795799
@@ -970,6 +974,7 @@ def test_regrets_tmp2():
970974 ],
971975)
972976def test_repeat_max_regret (game : gbt .Game , mixed_behav_prof_data : list ):
977+ game .sort_infosets ()
973978 profile1 = game .mixed_behavior_profile (rational = True , data = mixed_behav_prof_data )
974979 mr1 = profile1 .max_regret ()
975980 profile2 = game .mixed_behavior_profile (rational = True , data = mixed_behav_prof_data )
0 commit comments