style: rustfmt the Phase 1 test additions
The per-file Phase 1 test commits were written without running rustfmt as I went; this pass formats the new test code (long assert_eq! lines wrapped, etc.). Formatting-only — no behavioural change.
This commit is contained in:
@@ -290,7 +290,10 @@ mod tests {
|
||||
#[test]
|
||||
fn hill_climber_never_worsens_objective() {
|
||||
let mut opt = HillClimber::new(
|
||||
HillClimberConfig { iterations: 200, seed: 5 },
|
||||
HillClimberConfig {
|
||||
iterations: 200,
|
||||
seed: 5,
|
||||
},
|
||||
RealBounds::new(vec![(-3.0, 3.0); 2]),
|
||||
GaussianMutation { sigma: 0.3 },
|
||||
);
|
||||
@@ -306,7 +309,10 @@ mod tests {
|
||||
#[test]
|
||||
fn hill_climber_decreases_sphere() {
|
||||
let mut opt = HillClimber::new(
|
||||
HillClimberConfig { iterations: 500, seed: 11 },
|
||||
HillClimberConfig {
|
||||
iterations: 500,
|
||||
seed: 11,
|
||||
},
|
||||
RealBounds::new(vec![(-3.0, 3.0)]),
|
||||
GaussianMutation { sigma: 0.2 },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user