test: isolate optimizer mutation fixture

Issue: #198
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-08-19 21:10:27 +03:00
parent ef22b236f8
commit 5ce3ceeca7
+2 -1
View File
@@ -125,6 +125,7 @@ test('micro-interval cleanup preserves ambiguous and topological boundaries', ()
});
test('micro-interval cleanup is endpoint, input-order and room-order invariant without mutation', () => {
const baselineFixture = microIntervalFixture();
const fixture = microIntervalFixture();
const detached = {
id: 'r2', poly: [[0.85, 0.85], [0.95, 0.85], [0.95, 0.95], [0.85, 0.95]],
@@ -137,7 +138,7 @@ test('micro-interval cleanup is endpoint, input-order and room-order invariant w
}).sort();
const baseline = collapseIsolatedWallThicknessIslands(
[fixture.rooms[0], detached], fixture.walls, [], S, 5, S,
[baselineFixture.rooms[0], structuredClone(detached)], baselineFixture.walls, [], S, 5, S,
);
const reversedMiddle = {
...fixture.walls[1],