X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fdunshire%2Fgames.py;h=a039e1f232ff12395e5f0634de1dde7b3cdcfb10;hb=42d689189cc351603607793c4a43914f707873c2;hp=279afdb16036fa7c36a072ab4564f075002a0721;hpb=2bf0987eea59afe20d1391babcd9b8562f7ec5b0;p=dunshire.git diff --git a/src/dunshire/games.py b/src/dunshire/games.py index 279afdb..a039e1f 100644 --- a/src/dunshire/games.py +++ b/src/dunshire/games.py @@ -863,3 +863,7 @@ class SymmetricLinearGameTest(TestCase): # L should be negative stable ns = all([eig < options.ABS_TOL for eig in eigenvalues_re(L)]) self.assertTrue(ns) + + # The dual game's value should always equal the primal's. + dualsoln = game.dual().solution() + self.assert_within_tol(dualsoln.game_value(), soln.game_value())