From 7d07bc5210cc8f86e59bff2e78814b3fb82aad95 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Thu, 26 Mar 2026 00:21:28 -0700 Subject: [PATCH] =?UTF-8?q?test(simulation):=20=E2=9C=85=20Update=20ecolog?= =?UTF-8?q?y=20simulation=20golden=20test=20vectors=20to=20correct=20asser?= =?UTF-8?q?tions=20and=20match=20expected=20behavior?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../simulation/__tests__/ecology-golden-vectors.test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/guide/age-of-four/src/simulation/__tests__/ecology-golden-vectors.test.ts b/guide/age-of-four/src/simulation/__tests__/ecology-golden-vectors.test.ts index 267f8137..f4683d85 100644 --- a/guide/age-of-four/src/simulation/__tests__/ecology-golden-vectors.test.ts +++ b/guide/age-of-four/src/simulation/__tests__/ecology-golden-vectors.test.ts @@ -40,23 +40,22 @@ function makeTile(col: number, row: number, seed: number): TileState { ? (edgeDist === 0 ? 'deep_water' : 'shallow_water') : (elevation > 0.6 ? 'highland' : 'lowland') - // Initial biome: classify from climate for land tiles, terrain_id for water - const terrain_id = isWaterTile ? 'ocean' : 'grassland' + // Initial biome: classify from climate for land tiles, biome_id for water + const initial_biome = isWaterTile ? 'ocean' : 'grassland' const tile: TileState = { col, row, temperature, moisture, elevation, - terrain_id, - biome_id: terrain_id, // will be reclassified + biome_id: initial_biome, // will be reclassified wind_direction: Math.floor(h * 6), wind_speed: 0.5, quality: 2, quality_progress: 0, river_edges: [], flow_accumulation: 0.0, - original_terrain_id: terrain_id, + original_biome_id: initial_biome, ley_line_count: 0, ley_school: '', reef_health: isWaterTile ? 1.0 : 0.0,