test: speed up weekly village survival check
Co-Authored-By: GitHub Copilot <noreply@github.com>
This commit is contained in:
parent
e5dc752b41
commit
6124dc1001
10
src/world.rs
10
src/world.rs
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue