fix: reconcile hidden walls during Optimize

Issue: #296
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-08-24 19:10:27 +00:00
committed by claude[bot]
parent 033ad11bf7
commit 89ac96a8af
33 changed files with 1288 additions and 468 deletions
+8 -3
View File
@@ -87,9 +87,6 @@ test('issue 281 disables the old zero-range handle and enables it after Optimize
test('issue 281 leaves unsafe outer duplicates as hard stops', () => {
const variants = [];
const partial = clone(source);
partial.spaces[0].partitions[0].b = [0.4, 0];
variants.push(partial);
const unknown = clone(source);
unknown.spaces[0].partitions[0].future_semantics = true;
variants.push(unknown);
@@ -109,6 +106,14 @@ test('issue 281 leaves unsafe outer duplicates as hard stops', () => {
}
});
test('issue 296 removes a shorter outer duplicate which is entirely hidden', () => {
const partial = clone(source);
partial.spaces[0].partitions[0].b = [0.4, 0];
const result = optimizePlans(partial, {});
assert.equal(result.config.spaces[0].partitions
?.some((partition) => partition.id === 'top-left') ?? false, false);
});
test('issue 281 private exact fixture has no enabled zero-range handle', (t) => {
const path = 'C:\\Temp\\44.json';
if (!existsSync(path)) return t.skip('private #281 fixture is not present');