Tests that the default values are set correctly.
()
| 18 | |
| 19 | |
| 20 | def test_default_values(): |
| 21 | """ |
| 22 | Tests that the default values are set correctly. |
| 23 | """ |
| 24 | params = SolveParams() |
| 25 | |
| 26 | assert_equal(params.ils, IteratedLocalSearchParams()) |
| 27 | assert_equal(params.penalty, PenaltyParams()) |
| 28 | assert_equal(params.neighbourhood, NeighbourhoodParams()) |
| 29 | assert_equal(params.node_ops, NODE_OPERATORS) |
| 30 | assert_equal(params.route_ops, ROUTE_OPERATORS) |
| 31 | assert_allclose(params.display_interval, 5.0) |
| 32 | assert_equal(params.perturbation, PerturbationParams()) |
| 33 | |
| 34 | |
| 35 | def test_solve_params_from_file(): |
nothing calls this directly
no test coverage detected