From 5a136a946ba50431bebd3f0fee153393e04eaa04 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 00:51:18 +0200 Subject: [PATCH] Update terrain material layer tests with expanded sample counts and paint weights --- tests/domain/terrains.test.ts | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/tests/domain/terrains.test.ts b/tests/domain/terrains.test.ts index 9b44c455..e5a3f17e 100644 --- a/tests/domain/terrains.test.ts +++ b/tests/domain/terrains.test.ts @@ -149,8 +149,21 @@ describe("terrain material layers", () => { createTerrain({ id: "terrain-remove-layer", sampleCountX: 2, - sampleCountZ: 1, - paintWeights: [0.2, 0.3, 0.1, 0.4, 0.1, 0] + sampleCountZ: 2, + paintWeights: [ + 0.2, + 0.3, + 0.1, + 0.4, + 0.1, + 0, + 0, + 0.5, + 0, + 0.25, + 0.25, + 0.25 + ] }), "fifth-material" ); @@ -158,7 +171,20 @@ describe("terrain material layers", () => { const nextTerrain = createTerrainWithRemovedLayer(terrain, 2); expect(nextTerrain.layers).toHaveLength(4); - expect(nextTerrain.paintWeights).toEqual([0.2, 0.1, 0, 0.4, 0, 0]); + expect(nextTerrain.paintWeights).toEqual([ + 0.2, + 0.1, + 0, + 0.4, + 0, + 0, + 0, + 0, + 0, + 0.25, + 0.25, + 0 + ]); }); });