Changeset 791 for mystic/tests/test_solver_sanity.py
- Timestamp:
- 06/10/15 09:03:56 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/tests/test_solver_sanity.py
r776 r791 74 74 #if self.uselimits and self.maxiter == 0: iter=0 75 75 # sanity check solver internals 76 self.assertTrue(solver.generations == len(solver._stepmon. y)-iter)76 self.assertTrue(solver.generations == len(solver._stepmon._y)-iter) 77 77 self.assertTrue(list(solver.bestSolution) == solver._stepmon.x[-1]) #XXX 78 78 self.assertTrue(solver.bestEnergy == solver._stepmon.y[-1]) … … 82 82 self.assertTrue(ssow.x == solver._stepmon.x) 83 83 self.assertTrue(ssow.y == solver._stepmon.y) 84 self.assertTrue(ssow._y == solver._stepmon._y) 84 85 if self.useevalmon: 85 self.assertTrue(solver.evaluations == len(solver._evalmon. y))86 self.assertTrue(solver.evaluations == len(solver._evalmon._y)) 86 87 self.assertTrue(esow.x == solver._evalmon.x) 87 88 self.assertTrue(esow.y == solver._evalmon.y) 89 self.assertTrue(esow._y == solver._evalmon._y) 88 90 89 91 # Fail appropriately for solver/termination mismatch
Note: See TracChangeset
for help on using the changeset viewer.