]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Remove some debug print() statements and fix a copy-paste-o in the tests.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 12:57:29 +0000 (08:57 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 12:57:29 +0000 (08:57 -0400)
test/symmetric_linear_game_test.py

index 2978f11b627feeefe5edc82d89bec466eaae455b..12783f300078939c14db7f4b26db196c24166fe0 100644 (file)
@@ -567,14 +567,10 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904
         if soln.game_value() > epsilon:
             # L should be positive stable
             positive_stable = all([eig > -options.ABS_TOL for eig in eigs])
-            if not positive_stable:
-                print(str(eigs))
             self.assertTrue(positive_stable)
         elif soln.game_value() < -epsilon:
             # L should be negative stable
             negative_stable = all([eig < options.ABS_TOL for eig in eigs])
-            if not negative_stable:
-                print(str(eigs))
             self.assertTrue(negative_stable)
 
         # The dual game's value should always equal the primal's.
@@ -613,7 +609,7 @@ class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904
 
         while G._condition() > MAX_COND:
             # Try again until the condition number is satisfactory.
-            G = random_orthant_game()
+            G = random_icecream_game()
             L = random_lyapunov_like_icecream(G._K.dimension())
             G = SymmetricLinearGame(L, G._K, G._e1, G._e2)