test: speed up weekly village survival check

Co-Authored-By: GitHub Copilot <noreply@github.com>
This commit is contained in:
Steve Biedermann 2026-10-13 19:22:39 +02:00
parent e5dc752b41
commit 6124dc1001
1 changed files with 9 additions and 1 deletions

View File

@ -4331,7 +4331,15 @@ mod tests {
#[test]
fn village_survives_until_its_first_weekly_birth_check() {
let script = with_constant(&village_script_source(), "TICKS_PER_DAY", "240");
let script = village_script_source();
let script = with_constant(&script, "TICKS_PER_DAY", "60");
let script = with_constant(&script, "INITIAL_RABBITS", "0");
let script = with_constant(&script, "INITIAL_WOLVES", "0");
let script = with_constant(&script, "INITIAL_POPULATION", "18");
let script = with_constant(&script, "INITIAL_YOUNG_ADULTS", "18");
let script = with_constant(&script, "INITIAL_FOOD", "120");
let script = with_constant(&script, "HUNGER_OTHER", "0.08");
let script = with_constant(&script, "HUNGER_NIGHT_AT_HOME", "0.04");
let script = SimScript::load(&script).unwrap();
let mut world = World::new_with_script(42, script);
let first_week_tick =