Update network risk fixture for observed radar
Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
@@ -51,10 +51,12 @@ fn network_launcher_must_contribute_to_route_risk() {
|
||||
let id=sim.id();sim.sams.push(Sam::new(id,SamKind::P1sun,DVec3::new(0.,70.,0.),0.));
|
||||
let id=sim.id();sim.sams.push(Sam::new(id,SamKind::Radar,DVec3::new(0.,70.,0.),0.));
|
||||
let grid=Grid{min:DVec3::new(-160.,0.,-160.),cell:16.,size:20};
|
||||
// #93: the planner prices only what the enemy knows; the radar emits, the launcher is not known until it gives itself away.
|
||||
// The planner prices only observed units; neither unit is known initially.
|
||||
let (prices,_)=sim.price_grid(&grid,DroneKind::Shahed);
|
||||
assert!(prices.iter().all(|p|*p==1.),"an unknown launcher must not be priced");
|
||||
sim.intel.revealed.push((sim.sams[0].id,DVec3::new(0.,70.,0.),0));
|
||||
// Both the launcher and its supporting radar have been observed.
|
||||
sim.intel.revealed.push((sim.sams[1].id,DVec3::new(0.,70.,0.),0));
|
||||
let (prices,_)=sim.price_grid(&grid,DroneKind::Shahed);
|
||||
assert!(prices.iter().any(|p|*p>1.),"armed launcher with a network radar is invisible to route risk");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user