Smoke test that checks that that solving an instance with the same seed results in the same search trajectories.
(ok_small)
| 64 | |
| 65 | |
| 66 | def test_solve_same_seed(ok_small): |
| 67 | """ |
| 68 | Smoke test that checks that that solving an instance with the same seed |
| 69 | results in the same search trajectories. |
| 70 | """ |
| 71 | res1 = solve(ok_small, stop=MaxIterations(10), seed=0) |
| 72 | res2 = solve(ok_small, stop=MaxIterations(10), seed=0) |
| 73 | |
| 74 | assert_equal(res1.best, res2.best) |
| 75 | assert_equal(res1.stats.data, res2.stats.data) |
| 76 | |
| 77 | |
| 78 | def test_solve_initial_solution(rc208): |
nothing calls this directly
no test coverage detected